Commit Graph

36187 Commits

Author SHA1 Message Date
Nestor Soriano 4411a394dc Reintroduce adjust_posts_count, and remove unnecessary comment.
We can't remove that method since it's public, but its body has
been changed so that it just returns the input unchanged.
2020-09-10 15:17:43 +02:00
Jon Campbell 642b5b958e
Update class-wc-emails.php
removing whitespace to be coding standards compliant.
2020-09-09 16:32:12 -07:00
Christopher Allford 14c46fa4c2 Merge branch 'master' into add/e2e-feedback-blockers 2020-09-09 14:47:51 -07:00
Christopher Allford d0e6110e93 Fixed a failing E2E test 2020-09-09 14:47:44 -07:00
Christopher Allford aabc8ccd6b Updated all of the package-lock files using Node v10 2020-09-09 14:47:35 -07:00
Rodrigo Primo 84f0b87ebc Remove duplicated entry for Cyprus
Cyprus was listed both in Europe and Asia in the list of continents. This meant that when users search for it, for example when creating a new shipping zone, it would be displayed twice.

This commit fixes this problem by removing Cyprus from Europe and leaving it in Asia. CLDR puts Cyprus in Western Asia (2dd06669d8/tools/java/org/unicode/cldr/util/data/UnMacroRegions.txt (L229)).

I checked and there are no other cases of countries added to more than one continent in i18n/continents.php.
2020-09-09 17:10:51 -03:00
Ron Rennick 25cbfd2452 run grunt directly in travis e2e 2020-09-09 17:00:06 -03:00
Jon Campbell 188f839e70
add no stock notification filter 2020-09-09 12:07:15 -07:00
Christopher Allford ae697f9fe2 Prevented zero from being considered empty when validating posted variation attributes 2020-09-09 11:29:31 -07:00
Ron Rennick a9c17d580b update webpack to latest 2020-09-09 13:18:00 -03:00
jonathansadowski d019e33c7e
Merge pull request #27630 from woocommerce/update/readme-changelog-version-numbers-for-4.5.1
Update changelog, readme, and version numbers for 4.5.1
2020-09-09 10:46:10 -05:00
Nestor Soriano 70a1cb2f1f Revert improved filtering for variations.
This commit reverts the functionality introduced in PR #26260
(later refined by #27175, #27190, #27508) in which filtering by
attribute using the layered nav widget was improved to handle the
cases of variations out of stock. The revert is a response to the
numerous problems reported by users in Woo 4.4 and 4.5

Not all the code has been reverted, only the code that resulted in
visible functionality changes. Thus, the code that generates
term relationships for variations is still in place to keep database
consistency and to keep the reverting changes to the minimum needed.
2020-09-09 17:36:26 +02:00
Jonathan Sadowski 9da304e983 Update version in class-woocommerce.php 2020-09-09 10:35:05 -05:00
Jonathan Sadowski 610d609d10 Remove extra linebreak 2020-09-09 10:33:26 -05:00
Jonathan Sadowski 7698f73ee9 Update version in package.json 2020-09-09 10:32:33 -05:00
Jonathan Sadowski ed14f8abfd Add changelog 4.5.0 back to readme.txt 2020-09-09 10:32:09 -05:00
Jonathan Sadowski 3dd8c84633 Update changelog, readme, and version numbers for 4.5.1 2020-09-09 09:53:26 -05:00
jonathansadowski d00083f1ec
Merge pull request #27628 from woocommerce/fix/27624
Check for state and postcode fields only if required
2020-09-09 09:41:57 -05:00
vedanshujain 6a2ea0e27a Add unit test for show_shipping for different countries. 2020-09-09 19:53:21 +05:30
Ron Rennick 21e099d48f merge master 2020-09-09 11:17:20 -03:00
Ron Rennick 1287a8c9f0 fix up package.json for consistent puppeteer versions 2020-09-09 10:46:31 -03:00
vedanshujain 7f2b322085 Check for state and postcode fields only if required
We were doing state and postcode even for countries where its not required, but unfortunately as an unintended effect we were ending up not checking shipping requirements if this was not met.
2020-09-09 18:21:14 +05:30
jonathansadowski d9990b752e
Merge pull request #27614 from woocommerce/update/readme-changelog-and-version-for-wc-4.5
Update the changelog, readme, and woocommerce.php to prepare for 4.5 release
2020-09-08 15:12:46 -05:00
Rodrigo Primo 3aed780443 Paypal gateway: protect code against a fatal error
This commit changes the order of the error handling check to protect the code against a possible fatal error if wp_safe_remote_post() returns an instance of WP_Error().
2020-09-08 16:57:48 -03:00
Claudio Sanches e0f08cc65a Use global phpcs 2020-09-08 16:53:13 -03:00
Claudio Sanches 6a4225a338
Merge pull request #27548 from jgreys/fix/27538
Fixes spelling country's region Biscay #27538
2020-09-08 16:10:44 -03:00
Rodrigo Primo d50cd4389b Fix using tax classes with some non-ASCII characters
This commit fixes a bug that made it impossible to assign to a product a tax class that contained non-ASCII characters that are URL encoded by sanitize_title().

WooCommerce uses sanitize_title() to generate a slug when creating a tax class (d48f1d4e2e/includes/class-wc-tax.php (L808)). sanitize_title() converts some non-ASCII to ASCII equivalents (those handled by remove_accents()) and URL encodes others (like some Greek characters, for example).

The code was using wc_clean() to sanitize the tax class when the user edited a product. The problem is that wc_clean() removes URL encoded characters, changing the slug of some tax class, causing WooCommerce to use the standard tax class instead without any errors. To fix this issue, this commit replaces wc_clean() with sanitize_title(). This should be enough for security purposes and should not cause any issues with non-ASCII characters.
2020-09-08 16:00:56 -03:00
Claudio Sanches f748a71a8e Install globally 2020-09-08 15:56:06 -03:00
Claudio Sanches aa57d2f676 Update sniffs installation 2020-09-08 15:11:42 -03:00
Claudio Sanches e5d536b316
Update readme.txt 2020-09-08 14:24:44 -03:00
Jonathan Sadowski b49235b55f Update the changelog, readme, and woocommerce.php to prepare for 4.5 release 2020-09-08 12:19:24 -05:00
jonathansadowski 358ea384d6
Merge pull request #27602 from woocommerce/bump-woocommerce-admin-version-to-1.5.0
Bump WooCommerce Admin version to 1.5.0
2020-09-08 12:01:05 -05:00
jonathansadowski 168698cd91
Merge pull request #27589 from woocommerce/enhance-query-for-filtering-attributes-with-any-value
Enhance the query for "Any" variations in filter by attribute widget
2020-09-08 11:58:54 -05:00
Claudio Sanches 82a9530b4e Remove REST API repo link and introduce some new repos 2020-09-08 13:49:37 -03:00
Claudio Sanches 6c1d7b889e
Merge pull request #27590 from woocommerce/fix/27326
Fix variations and attributes layout when running WP >= 5.5
2020-09-08 13:10:37 -03:00
Rebecca Scott 1f42f0f487 Bump WooCommerce Admin version to 1.5.0 2020-09-08 10:56:31 -05:00
jonathansadowski 129bc3b9fc
Merge pull request #27612 from woocommerce/fix/supported-php
Fix composer install errors
2020-09-08 10:49:17 -05:00
Claudio Sanches 5abd0d261d
Merge pull request #27586 from woocommerce/renovate/npm-node-sass-vulnerability
Update dependency node-sass to v4.13.1 [SECURITY]
2020-09-08 11:45:31 -03:00
Claudio Sanches e581dbfadd Restore platform confirm and force package-lock.json to update 2020-09-08 11:38:57 -03:00
Claudio Sanches 13aff71488 Remove platform from composer config 2020-09-08 11:35:03 -03:00
jonathansadowski 6321a87a26
Merge pull request #27594 from woocommerce/update/wordpress-minimum-version-for-wc-4.5
Update minimum WordPress version for WooCommerce 4.5
2020-09-08 09:23:30 -05:00
Martin Adamko c2ab6a488d
Encapsulate scope of `c` variable
By changing to auto invoking call the `c` variable will be encapsulated in its scope therefore not polluting the global scope and will continue to function as previously.

Fixes conflict and reassigning of already used variables when using other minified scripts. In my case the problem occurred with the Speed Booster Pack plugin.
2020-09-08 09:20:18 +02:00
Nestor Soriano 958ecf1d48 Fix the SQL query to count products in the filter by attribute widget
The previous query was counting variable products twice when they
had a variation with a concrete value for the attribute and also
a variation with "Any..." value for the same attribute.
2020-09-07 16:44:14 +02:00
Bec Scott 6eb65cb40c
Merge pull request #27573 from woocommerce/bump-woocommerce-admin-version-to-1.5.0-rc.5
Bump woocommerce admin version to 1.5.0-rc.5
2020-09-07 16:57:02 +10:00
Renovate Bot 9432b8a703
Update dependency node-sass to v4.13.1 [SECURITY] 2020-09-05 16:43:24 +00:00
Rodrigo Primo 33a74f5f04 Update version in which woocommerce_return_to_shop_text was added 2020-09-05 11:43:43 -03:00
Aezaz Shaikh e7f474ef21
Add filter to change "Return to Shop" button text (#25419)
* Update cart-empty.php

Added filter to change "Return to Shop" button text

* Update cart-empty.php

* Escape HTML and add docblock

Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-05 11:37:29 -03:00
Rodrigo Primo 5ad1243971
Merge pull request #27525 from khag7/khag7-issue-27523
Fix #27523 - Define a background-color for the H1 in the email header
2020-09-05 11:27:43 -03:00
Rodrigo Primo b44c01eb69
Merge pull request #26913 from woocommerce/renovate/grunt-stylelint-0.x
Update dependency grunt-stylelint to v0.15.0
2020-09-05 11:19:54 -03:00
Rodrigo Primo 12cc9ddf7c Merge branch 'master' of github.com:woocommerce/woocommerce 2020-09-05 11:16:09 -03:00