Commit Graph

36613 Commits

Author SHA1 Message Date
Rodrigo Primo 03f7d4753c
Merge pull request #28081 from ibonkonesa/master
Children misspelled as Childre 28066
2020-10-23 17:25:30 -03:00
Roy Ho ecd08277f9
Merge pull request #28070 from NicholasMacedo/patch-1
Update class-wc-product-variable.php
2020-10-23 13:12:04 -07:00
ibon fb78882762 Children misspelled as Childre 28066 2020-10-23 20:34:50 +02:00
Rodrigo Primo c5028be0ed
Merge pull request #28065 from woocommerce/fix/remove-wpcs-deprecated-syntax
Replace WPCS deprecated syntax
2020-10-23 13:48:27 -03:00
Ron Rennick 7638d73d85 add docker:ssh to core repo scripts 2020-10-23 11:22:47 -03:00
Shahlin Ibrahim e06466b2b7 Minor docblock grammar/typo/casing fixes 2020-10-23 17:27:39 +04:00
Nicholas Macedo 815fd01a98
Update class-wc-product-variable.php
Fix the typo on line 416 according to Issue  #28066
2020-10-22 20:37:36 -04:00
Rodrigo Primo 09faf8ba84 Fix: use the correct parameter when calling get_avatar()
`WC_Admin_Dashboard::recent_reviews()` was calling `get_avatar()` passing `$comment->comment_author` which is not one of the list of parameters that the function accepts to get the avatar. As a result, the widget that displays the recent reviews in the admin dashboard was never displaying the avatar of the user that left the review. This commit fixes this issue by passing `$comment->comment_email` instead. I opted to use `$comment->comment_author` as it should be available for reviews left both by authenticated and anonymous users and because getting the comment object wouldn't be so simple (either we need to perform an extra query for each review or deprecate the `woocommerce_report_recent_reviews_query_from` filter).
2020-10-22 17:43:59 -03:00
Rodrigo Primo e91872c1a8 PHPCS fixes 2020-10-22 17:34:47 -03:00
Rodrigo Primo 6bde9fd8a5 Replace WPCS deprecated syntax
Using the WPCS native whitelist comments is deprecated. So this PR just replaces all instances of `// WPCS: XSS ok.` found in `includes/wc-cart-functions.php` with the PHPCS native "// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped". I found this while working on another issue in the same file.
2020-10-22 16:03:34 -03:00
Rodrigo Primo 4e5fb5724c Improves i18n of string displayed during checkout
This commit improves the i18n of a string displayed during checkout showing the total amount of the order when the store is configured to display prices inclusive of taxes.

Before string concatenation was used to build the final string which is almost always a bad practice from i18n point of view (https://codex.wordpress.org/I18n_for_WordPress_Developers#Best_Practices). This commit uses sprintf() and two separate strings to make translation easier.
2020-10-22 15:38:07 -03:00
pjv f03bfb85da Fix incorrect capability for product sorting link
Fixes #28049
2020-10-22 13:03:35 -05:00
Claudio Sanches 3f61afe533
Merge pull request #28046 from woocommerce/update/master-branch-after-4-6-1-release
Update master branch after the release of WC 4.6.1
2020-10-21 15:33:45 -03:00
Rodrigo Primo 9910ff94b9 Bump the stable tag to 4.6.1 2020-10-21 15:28:54 -03:00
Rodrigo Primo 48e8171ba5 Add 4.6.1 changes to changelog.txt 2020-10-21 15:28:26 -03:00
Claudio Sanches 600d48967f
Merge pull request #28038 from woocommerce/fix/minor-error-in-prefix-vendor-namespaces
Fix error in the sed commands used to prefix namespaces
2020-10-21 10:13:16 -03:00
Claudio Sanches 81ce4e23bf
Merge pull request #28036 from Luminus/patch-1
Fix CLDR recommendations link
2020-10-21 10:02:47 -03:00
Claudio Sanches d78d752336
Apply suggestions from code review 2020-10-21 10:01:53 -03:00
Peter Fabian 8bc2b77e45
Merge pull request #28037 from woocommerce/fix/add-Ron-to-contributors
Added Ron to the list of contributors
2020-10-21 14:50:13 +02:00
Peter Fabian bb896eb1b4
Added Ron to the list of contributors 2020-10-21 14:29:57 +02:00
Rodrigo Primo 9f22f10861 Fix error in the sed commands used to prefix namespaces
This commit fixes a minor error in the sed commands used to prefix
namespaces in the vendor folder. Due to an extra space sed was
considering `.bak` an extra parameter. If we use `-i.bak` instead (without the
space), sed creates a backup file which is the desired behavior.

With this change we won't be getting the errors below when running
`composer install` or `composer update`:

```
Generating autoload files
> sh ./bin/prefix-vendor-namespaces.sh
Prefixing the appropriate vendor namespaces with Automattic\WooCommerce\Vendor
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
(...)
```

Since sed was working without creating a backup file, I wonder if we
really need to create one. I tested and `sed -i -E -e
"s/\"(League\\\\\\\Container)/\"Automattic\\\\\\\WooCommerce\\\\\\\Vendor\\\\\\\\\1/g"
vendor/league/container/composer.json` works well in Linux. If it also
works on Mac, maybe we can use it and remove the code that deletes the
.bak files?
2020-10-21 09:26:30 -03:00
Luminus Olumide Alabi 49a21bc9bd
Update countries.php
Fix CLDR recommendations link
2020-10-21 13:11:00 +01:00
Rodrigo Primo 9355e632e8 Remove WP nightly from the list of Travis jobs that can fail
In #27977, we added the Travis build job that runs using WP nightly to
the list of jobs that can fail due to a problem in WP itself. Now this
problem was fixed, the build job is passing and we can remove it from
this list.
2020-10-21 09:03:43 -03:00
James Allan b1a2fa01a6 Check the cart exists before emptying it after PayPal response 2020-10-21 10:32:37 +10:00
Claudio Sanches a02f1a483f
Merge pull request #28010 from woocommerce/fix/28007
Update minified jQuery TipTip file
2020-10-20 20:15:47 -03:00
Claudio Sanches 3a4641dfb9
Merge pull request #28022 from woocommerce/update/contributors
Added royho to contributors list
2020-10-20 16:25:04 -03:00
Roy Ho 027b51d44a
Merge pull request #28021 from woocommerce/update/prepare-4.8
Prepare default branch to 4.8
2020-10-20 12:24:51 -07:00
Claudio Sanches a09d31d8cd Added royho to contributors list 2020-10-20 15:23:02 -03:00
Claudio Sanches f7ecbbeb35 Prepare default branch to 4.8 2020-10-20 15:20:52 -03:00
Claudio Sanches e3b7ed1c75
Merge pull request #28015 from woocommerce/renovate/webfreak001-deploy-nightly-1.x
Update WebFreak001/deploy-nightly action to v1.1.0
2020-10-20 11:44:21 -03:00
Claudio Sanches 615f759b1d
Merge pull request #28016 from woocommerce/renovate/richardsimko-github-tag-action-1.x
Update richardsimko/github-tag-action action to v1.0.4
2020-10-20 11:44:09 -03:00
Renovate Bot fc1f55dd20
Update richardsimko/github-tag-action action to v1.0.4 2020-10-20 14:13:50 +00:00
Renovate Bot 57b94db15c
Update WebFreak001/deploy-nightly action to v1.1.0 2020-10-20 14:13:41 +00:00
Rodrigo Primo 8635d0f84b
Merge pull request #28006 from woocommerce/update/woocommerce-admin/1.6.2
Update woocommerce-admin to 1.6.2
2020-10-20 11:03:44 -03:00
Rodrigo Primo d0576a2a17 Merge branch 'master' into update/woocommerce-admin/1.6.2 2020-10-20 10:43:52 -03:00
Claudio Sanches f7e9c1bfb7
Merge pull request #27995 from rodrigoprimo/fix/phpcs-travis
Fix the Travis build job that runs PHPCS
2020-10-20 10:14:39 -03:00
Claudio Sanches 0a8c9193d4
Merge pull request #27930 from woocommerce/update/woocommerce-blocks-3.6.0
Update WooCommerce Blocks package to 3.6.0
2020-10-19 23:41:53 -03:00
Claudio Sanches f349a70618 Merge branch 'master' into update/woocommerce-blocks-3.6.0 2020-10-19 23:40:52 -03:00
Claudio Sanches e6e199fb7e Update composer.lock 2020-10-19 23:37:27 -03:00
Claudio Sanches ef956e64e7 Update minified jQuery TipTip file 2020-10-19 21:18:20 -03:00
Claudio Sanches 631c06020c
Merge pull request #27800 from gbiorczyk/fix/field-label-escaping
Escaping output for field label
2020-10-19 20:26:38 -03:00
Claudio Sanches 139df7bdaa
Merge pull request #27986 from woocommerce/php8/fixes-in-dependency-injection-container
[PHP 8] Fixes in the dependency injection engine for PHP 8 compatibility
2020-10-19 20:22:35 -03:00
Timmy Crawford 8641ec6135 Update woocommerce-admin to 1.6.2 2020-10-19 10:39:15 -07:00
Ron Rennick 503e898307 use direct exports 2020-10-19 11:32:28 -03:00
Claudio Sanches e5f0ce0723
Merge pull request #27999 from rodrigoprimo/update/remove-php-from-e2e-travis-job
Remove PHP 7.4 from the Travis job that runs E2E tests
2020-10-19 10:54:02 -03:00
Claudio Sanches 96abbdf6bc
Merge pull request #28000 from rodrigoprimo/update/remove-unnecessary-commands-from-travis
Remove unnecessary commands from Travis
2020-10-19 10:50:15 -03:00
roykho 8c73c5f2f8
Replace jQuery.ready function with recommended way since jQuery 3.0 closes #27945 2020-10-19 06:47:55 -07:00
Nestor Soriano 9aaee3dab9 Fix for compatibility of reflection function with PHP 7.0 2020-10-19 08:44:47 +02:00
Rodrigo Primo 2473bf3d7f Remove command to install jest from Travis
We don't need jest installed globally in the Travis build job that runs
the E2E as they are executed inside a Docker container.
2020-10-17 12:29:48 -03:00
Rodrigo Primo a7905e148a Remove xvfb from Travis configuration
Now that we are using Docker to run E2E tests, we don't need to start
xvfb anymore in the Travis build jobs.
2020-10-17 12:28:01 -03:00