Commit Graph

31788 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 26c2d49586 Set Tracks image position to fixed 2019-06-18 13:05:30 +02:00
Renovate Bot 60f747fff2
Update dependency babel-eslint to v10.0.2 2019-06-17 15:55:46 +00:00
rmalviya 50d84e3e49 Remove shipping section from helpful message of login form
Shipping section may not always be present such as in case of only
virtual products in cart, so remove it from message shown for the
login form.
Fixes #23940 by removing shipping section from message. In case of
where shipping section needs to be shown, it is quite obvious for
customers to move to shipping section after filling out billing details.
2019-06-15 17:43:09 +05:30
rmalviya 4190e9fd4b Add missing post_type=product in url
Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923.
2019-06-14 12:28:08 +05:30
rmalviya 0e896f82fa Change misleading tooltip for product sale meta box
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931.
2019-06-14 11:12:54 +05:30
rmalviya 5df3621640 Do not unslash password when resetting
Similar to PR(#23926) don't unslash password fields when posted
while resetting password or changing account details.
2019-06-14 09:16:21 +05:30
rmalviya 01025f9628 Stop unslashing password while registering user
After 79ff1b10e password is not unslashed while logging in but
this missed removing `wp_unslash` from password while registering.
This causes the mismatch of password if user registered with a
password containing quote (`"`).
Fixes #23922.
2019-06-14 09:16:21 +05:30
Renovate Bot 21e0bc3821
Update dependency lint-staged to v8.2.1 2019-06-13 19:08:29 +00:00
Claudio Sanches aaf789ad64
Merge pull request #23920 from woocommerce/fix/codex-links
Updated outdated codex URLs
2019-06-13 14:50:49 -03:00
Claudio Sanches ff7439d65f
Merge pull request #23928 from woocommerce/try/fix-wp-version-for-php-52-53
Fix WP version to 5.1.1, last one that supports PHP < 5.6.
2019-06-13 12:44:28 -03:00
Peter Fabian c4b48eb64e Fix WP version to 5.1.1, last one that supports PHP < 5.6. 2019-06-13 15:43:59 +02:00
Marco Almeida 3b7be608e4
Display Status > Log timestamp with the Y-m-d H:i:s format
Display WooCommerce > Statis > Log timestamp, when using WC_Log_Handler_DB, with the Y-m-d H:i:s format instead of the WordPress global date and time format options, because we need more detail on the shown timestamps and that might not be compatible with what we want for our global options.
2019-06-13 10:58:41 +01:00
Gerhard b784de2268 Bump WooCommerce-Sniffs minimum version 2019-06-13 11:47:22 +02:00
Gerhard a2953da9ad Bump minimum PHP version to 5.6, update travis to remove 5.2 and 5.3 tests. 2019-06-13 11:28:18 +02:00
Claudio Sanches 3ce6acec74 Updated outdated codex URLs 2019-06-12 19:31:01 -03:00
Claudio Sanches 5624af43a7 Updated docs about increasing memory allocated to php 2019-06-12 19:04:24 -03:00
Gerhard 84b6fa144f Update description for automatic username generation to reflect how it actually works. 2019-06-12 12:13:41 +02:00
Gerhard 3894d156e6 Explicitly check 0 value attributes when looking up variations. 2019-06-12 11:27:27 +02:00
Renovate Bot 45fd1e4985
Update dependency husky to v2.4.1 2019-06-11 22:28:48 +00:00
Renovate Bot 34b2022789
Update dependency chromedriver to v75 2019-06-10 16:09:06 +00:00
rmalviya 5bf8adf2dd Send boolean as expected, not string
Originally checkout.js:336 expected string but changed to boolean
with 4ad370985. Send boolean for `reload` in json and fix #23888.
2019-06-08 20:12:44 +05:30
Renovate Bot 2b1d5959c8
Update dependency stylelint to v10.1.0 2019-06-07 14:36:31 +00:00
Claudio Sanches c0a9b57d72 Shows city as an optional field for Singapore 2019-06-06 20:13:55 -03:00
Jared Burke 332c94c13a Fix fatal error when applying a virtual coupon to an order placed by a guest 2019-06-06 15:37:08 -05:00
Dan Wyman 3edd30757b Tracker: apply coding standards. 2019-06-06 13:23:11 -07:00
Claudio Sanches 9eca72849d
Merge pull request #23873 from woocommerce/renovate/lint-staged-8.x
Update dependency lint-staged to v8.2.0
2019-06-06 10:08:30 -03:00
Claudio Sanches 473b15233d
Merge pull request #23871 from woocommerce/renovate/husky-2.x
Update dependency husky to v2.4.0
2019-06-06 10:07:50 -03:00
Renovate Bot 6f7ca779f2
Update dependency lint-staged to v8.2.0 2019-06-06 08:41:45 +00:00
Fulvio Notarstefano aba51d4c76 [#23839] Use false arg in class_exists() 2019-06-06 09:56:30 +08:00
Renovate Bot a7a6581fd1
Update dependency husky to v2.4.0 2019-06-05 17:58:55 +00:00
Claudio Sanches e2a842e47d
Merge pull request #23862 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.6.0
2019-06-03 20:12:23 -03:00
Jonathan Moore 9e8debd7ba
Avoid attempting to cache expired sessions
get_session() attempts to cache a session even if it is already expired.
The code used passes negative expiry seconds to wp_cache_add if the session expired in the past:
wp_cache_add( $this->get_cache_prefix() . $customer_id, $value, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );

Depending on the caching layers used this will give errors in the logs such as:
ERR invalid expire time in setex in /var/www/html/wp-content/plugins/redis-cache/includes/predis/src/Client.php:370
as reported on: https://wordpress.org/support/topic/error-when-trying-to-get-a-get-a-cache-not-available/
2019-06-03 22:11:46 +01:00
Renovate Bot 562e0f0e94
Update dependency autoprefixer to v9.6.0 2019-06-03 18:44:50 +00:00
Ajay Ghaghretiya c9bcce3a31 #23850 Fixed the coupon usage limit issue when apply coupon from admin panel (#23851)
* fix the coupon usage limit issue

* fix the if condition for the usage limit

* fixed coding standard

* fix the if conditions for coupon usage limit per user
2019-06-03 10:47:32 -03:00
Claudio Sanches 15fa45af69 Merge branch 'master' of github.com:woocommerce/woocommerce 2019-06-02 18:32:56 -03:00
Claudio Sanches b43e6cd583 Fixed npm packages 2019-06-02 18:32:42 -03:00
Claudio Sanches 3a47453d68 Improve regex 2019-06-01 11:52:15 -03:00
Dan Wyman 7355fadfdd Tracker: fix review count.
Fixes #23848
2019-05-30 12:45:47 -07:00
Rodrigo Primo 3ea8162cff
Merge pull request #23838 from woocommerce/feature/23829
Introduced woocommerce_search_products_post_statuses filter
2019-05-29 14:48:46 -03:00
Fulvio Notarstefano ab1ba58128 [#23839] Do not throw an autoloader notice if following the notice recommendation 2019-05-29 12:47:26 +08:00
Claudio Sanches b5da70c74a Introduced woocommerce_search_products_post_statuses filter 2019-05-28 21:05:26 -03:00
Claudio Sanches 2f7ec9506f New tests for is_postcode with NL postcodes 2019-05-28 20:55:51 -03:00
Claudio Sanches e04e9ae521 Make NL postcode validation more flexible
Allows postcode without spaces and in lowercase.
2019-05-28 20:51:07 -03:00
Claudio Sanches 2e90e9ab65
Merge pull request #23743 from Sisanu/issue-23717-enhancement-hook
Implement the info & extra actions new filter for Product gallery
2019-05-28 18:22:33 -03:00
Claudio Sanches 2fdf6de827
Merge pull request #23764 from jorgept/patch-1
Update class-wc-countries.php
2019-05-28 18:19:41 -03:00
Claudio Sanches c28af404ad
Merge pull request #23814 from woocommerce/add/x-sendfile-file-filter
Add filters to file paths passed to the different xsendfile like backends
2019-05-28 17:41:49 -03:00
Jonathan Moore 5d6574a00a
rating optional = generate_product_data incorrect
If rating is not mandatory on comments, generate_product_data() produces incorrect output.
For example items with comments but no reviews are output with rating of zero which is getting flagged in google webmasters tools under the heading "Rating is missing required best and/or worst values".

The output google is objecting to is eg:
"aggregateRating":{"@type":"AggregateRating","ratingValue":"0","reviewCount":1}}

postmeta in this case is:
_wc_average_rating 0
_wc_rating_count 0.0
_wc_review_count 1

product lookup table is reporting
rating_count 0
average_rating 0.00

the meta is correct and reflected in the product object, it is the test that is wrong since
if $product->get_review_count() 
may be true even if there are no ratings.

This is solved by substituting get_rating_count() which has the correct number of ratings.
2019-05-28 07:38:07 +01:00
Rodrigo Primo 31affff196 3.6.4 changelog 2019-05-27 16:35:39 -03:00
Rodrigo Primo 3d12ec4ae2 Remove extra comma to prevent issues with older versions of IE
This commit simply removes an extra comma that was added in
52fced8d7a to prevent issues with older
versions of IE. I found this when running grunt to prepare the 3.6.4
release:

```
Running "jshint:all" (jshint) task

   assets/js/admin/meta-boxes-order.js
    413 |                    user_email : user_email,
                                                    ^ Extra comma. (it breaks older versions of IE)
```

We might want to add jshint to the pre-commit hook and to Travis.
2019-05-27 14:38:54 -03:00
Rodrigo Primo 000c95ea88
Merge pull request #23659 from woocommerce/add/wc-admin-install-nudge
Add wc-admin notice.
2019-05-27 12:29:43 -03:00