Commit Graph

29487 Commits

Author SHA1 Message Date
Claudiu Lodromanean 152b609c35
Merge pull request #21981 from woocommerce/fix/21422
Log file timestamp should be UTC
2018-11-21 12:59:46 -08:00
Claudio Sanches 6a21ec401c Fixed coding standards 2018-11-21 16:12:35 -02:00
Claudio Sanches fa8ec35006 Fixed REST API authentication when using 3rd party auth methods
Closes #21789
2018-11-21 16:10:36 -02:00
John Blackbourn 71def7b5f0 Revert "Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989."
This reverts commit b0b36ae4b8.
2018-11-21 18:50:59 +01:00
Gerhard Potgieter 7c7f0725ef Update new account email copy to be representative of auto generated accounts also. (#21999)
* Update customer new account email copy to be more friendly for auto generated usernames.

* Bump template versions
2018-11-21 15:27:33 -02:00
Rodrigo Primo 171e90815b
Merge pull request #21985 from webdados/patch-1
Fix locale for São Tomé and Príncipe
2018-11-21 15:25:08 -02:00
Rodrigo Primo 4c581f5a87 Remove PHP 7.3 from the list of build jobs that are allowed to fail
Now that all the required changes to make WooCommerce work fine with PHP 7.3 were implemented, it is safe to remove PHP 7.3 from the list of Travis build jobs that are allowed to fail.
2018-11-21 12:30:06 -02:00
Claudio Sanches 83cb978c9e
Merge pull request #22006 from woocommerce/phpcompatibility-changes
PHPCompatibility and WPCS sniff changes
2018-11-21 11:21:41 -02:00
Rodrigo Primo c349136273 Merge branch 'master' into php73-wp-nightly 2018-11-21 11:15:48 -02:00
Rodrigo Primo 2c8d006c37 Update PHPCompatibility sniff names
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo bfa9424d17 Update WPCS sniff name
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo e467737653 phpcs fixes 2018-11-21 11:06:42 -02:00
Gerhard 06d7d50f9d Include main_image variable in the woocommerce_gallery_image_html_attachment_image_params filter. 2018-11-21 13:52:55 +02:00
Gerhard 7e4e0de090 PHPCS fixes 2018-11-21 13:48:35 +02:00
Gerhard 9eb31f5d14 Add woocommerce_gallery_image_html_attachment_image_params filter so you can modify the params passed to wp_get_attachment_image for thumbnails. 2018-11-21 13:47:24 +02:00
Rodrigo Primo 3aebf7cf1c
Merge pull request #21974 from woocommerce/update/wpcs
Updated WooCommerce Sniffs
2018-11-21 09:38:26 -02:00
Gerhard f58fcf6b3b Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices 2018-11-21 10:32:28 +02:00
Gerhard 8d6d95935a Populare arealabelledby attribute by actually passing the product_name in the $args. 2018-11-21 09:49:38 +02:00
Claudio Sanches bf1d11e734 Updated WooCommerec Sniffs to 0.0.5 2018-11-20 19:37:28 -02:00
claudiulodro ebea6b96be When only selling to one country set customer location to that country 2018-11-20 12:07:57 -08:00
Claudiu Lodromanean ac80e6683e
Merge pull request #21947 from franticpsyx/issue-21845
Refine new order-again logic
2018-11-20 10:53:40 -08:00
Claudiu Lodromanean 71a126e664
Merge pull request #21844 from woocommerce/fix/21813
Decode variation html dimensions when setting dimensions html on frontend
2018-11-20 10:29:44 -08:00
Rodrigo Primo a9e532022a Replace `continue` inside `switch` statement with `break`
PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/
2018-11-20 16:24:11 -02:00
John Blackbourn b0b36ae4b8 Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989. 2018-11-20 18:58:42 +01:00
John Blackbourn 179aa0853d Add a public method for forgetting a session without clearing it. 2018-11-20 18:58:14 +01:00
Rodrigo Primo d29ead0e63 Make Emogrifier regular expressions compatibile with PCRE2
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587) instead of updating the library to the yet to be released version 2.1.0.

This change removes the following warning when running WC unit tests using PHP 7.3:

PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504

For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
Rodrigo Primo 2e348cda65 Merge branch 'php73-wp-nightly' of https://github.com/rodrigoprimo/woocommerce into php73-wp-nightly 2018-11-20 15:17:27 -02:00
Rodrigo Primo 8b85eee2d0 Ignore WP beta releases when setting WP_TESTS_TAG
This commit changes the regular expression used to determine the WP_TESTS_TAG variable to ignore WP beta releases otherwise install_test_suite() will fail to download the test suite. This is part of workaround to run WooCommerce unit tests using PHP 7.3 and WP 5.0 beta-5.
2018-11-20 14:43:38 -02:00
Rodrigo Primo 68abf960f4 Use WP 5.0-beta5 when running PHP 7.3 in Travis
To make it easier to test WC running the upcoming PHP 7.3, this commit changes the PHP 7.3 Travis build to run unit tests using WP 5.0-beta5. This way we won't display WP core warnings related to PHP 7.3 that were already fixed in the upcoming WP version and will be able to see only WC related warnings.

My initial plan was to use WP nightly but that didn't work as nightly is still build from trunk and WP 5.0 development is being done on another branch (https://make.wordpress.org/core/2018/10/05/wordpress-5-0-commit-management/).
2018-11-20 14:43:27 -02:00
Marco Almeida 276d6f3526
Fix Angolan "State" label to "Province"
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Jeremy Pry 7cc3d098ea
Use proper return value for wc_customer_has_capability() docblock 2018-11-20 08:50:46 -05:00
Marco Almeida b19941dae4
Fix locale for São Tomé and Príncipe
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Rodrigo Primo c848bcda1b
Merge pull request #21984 from webdados/patch-1
Remove Postal Code for Angola
2018-11-20 11:02:57 -02:00
Marco Almeida 9282c1a619
Remove postal code for Angola
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Gerhard 47226ae2bf PHPCS fixes 2018-11-20 12:54:59 +02:00
Gerhard c05c17d947 Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file. 2018-11-20 12:46:52 +02:00
Claudiu Lodromanean 0cf264dc72
Merge pull request #21949 from franticpsyx/issue-21948
Parse query using '$wpdb->prepare' before querying
2018-11-19 13:13:53 -08:00
Claudiu Lodromanean b585553ee9
Merge pull request #21864 from Prospress/fix/21457
allow export and display of attribute labels containing html special characters
2018-11-19 12:20:41 -08:00
Claudiu Lodromanean 0ddfbbe1ac
Merge pull request #21954 from willgorham/fix/21793
Fix hardcoded db table name [Fixes #21793]
2018-11-19 12:10:55 -08:00
Claudiu Lodromanean 4d93bf60e1
Merge pull request #21930 from woocommerce/update/21915
Add WP 5.0 checks to Wootenberg notices
2018-11-19 11:47:43 -08:00
Claudiu Lodromanean cba4ccaf65
Merge pull request #21953 from woocommerce/fix/shipstation-obw-install
OBW: Fix ShipStation plugin info so install works
2018-11-19 11:47:02 -08:00
Claudio Sanches 86725c4f8c Updated WooCommerce Sniffs 2018-11-19 16:52:33 -02:00
Rodrigo Primo 4520e88328
Merge pull request #21967 from woocommerce/fix/21888
Update translators comment to reflect true variable
2018-11-19 14:00:49 -02:00
Tiago Noronha 89eec8652f Add support for Twenty Nineteen color scheme option 2018-11-19 15:02:26 +00:00
Tiago Noronha 99ab28a886 Remove border and add handheld styling to pagination 2018-11-19 14:40:43 +00:00
Tiago Noronha a0d2a4d219 Style pagination to match Twenty Nineteen 2018-11-19 14:35:34 +00:00
Gerhard e4ba5c7f3f Add unit tests for new woocommerce_valid_location_types filter. 2018-11-19 13:21:02 +02:00
Gerhard dbeabd5b09 Add woocommerce_valid_location_types filter 2018-11-19 13:04:58 +02:00
Gerhard 097861605e Update translators comment to reflect true variable 2018-11-19 11:38:30 +02:00
Manos Psychogyiopoulos 8de917937c Add last array element comma back (coding stds) 2018-11-19 11:01:49 +02:00