Commit Graph

36536 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Rodrigo Primo 7830562fc7 Remove PHP 7.4 from the Travis job that runs E2E tests
This should reduce in about ten seconds (https://travis-ci.org/github/woocommerce/woocommerce/jobs/736437593#L198) the time to run this Travis job. PHP 7.4 is not installed by default in the image user by Travis and it is not needed to run the E2E tests.
2020-10-17 11:54:30 -03:00
Rodrigo Primo 0a81188e42
Merge pull request #27987 from woocommerce/php8/fix-required-parameters-after-optional-take-2
[PHP 8] Convert optional-before-required parameters into required parameters (take 2)
2020-10-17 09:42:20 -03:00
Rodrigo Primo 17471f8f66 Stop installing PHPCS globally in the Travis build job
PHPCS is already installed as a project dependency (we run `composer
install` for each build job) so there is no need to install it as a
global package in `tests/bin/phpcs.sh`.
2020-10-16 16:37:05 -03:00
Rodrigo Primo eaef2409bd Use phpcs installed locally instead of globally
This is an attempt to fix the PHPCS Travis build job that started
failing with the following error:

```
Running Code Sniffer.
tests/bin/phpcs.sh: line 14: phpcs: command not found
The command "bash tests/bin/phpcs.sh" exited with 127.
```

(https://travis-ci.org/github/woocommerce/woocommerce/jobs/736440739#L508)
2020-10-16 16:36:57 -03:00
Claudio Sanches ad59064c69
Merge pull request #27983 from woocommerce/fix/issue-25099
Fix billing email being parsed as a URL link when beginning of email …
2020-10-16 14:16:57 -03:00
Rodrigo Primo 9ac6d54960
Merge pull request #27469 from woocommerce/renovate/automattic-jetpack-constants-1.x
Update dependency automattic/jetpack-constants to v1.5.0
2020-10-16 14:07:02 -03:00
Ron Rennick ad1e5a180f
Merge pull request #27301 from woocommerce/update/writing-e2e-tests-readme
Add guide for writing e2e tests in README
2020-10-16 12:33:34 -03:00
Julia Amosova ff67a7c1ce Add note about test locations in WC Core and other projects. 2020-10-16 11:27:00 -04:00
Julia Amosova bd5b65426f Update README with more details on how to write e2e tests. 2020-10-16 11:20:33 -04:00
Julia Amosova 8c094daceb Add guide for writing e2e tests in README 2020-10-16 11:20:24 -04:00
roykho e8bcd464db
Update escape based on suggestion 2020-10-16 06:00:34 -07:00
Rodrigo Primo f7dd2c0ad3
Merge pull request #27164 from bahiirwa/locales
Add i18n locale information for Uganda, Kenya and Tanzania.
2020-10-16 09:57:55 -03:00
Nestor Soriano 63ced34e2d Convert optional-before-required arguments to required (take 2)
In PHP 8 required parameters after optional parameters in
function/method signatures trigger a deprecation notice. These type
of parameters are pointless since a value needs to always be
provided for them anyway, so they are actually de-facto required.

This commit converts all these not-so-optional parameters into
truly required parameters by removing their default values.
2020-10-16 13:08:31 +02:00
Renovate Bot a7696c7392
Update dependency automattic/jetpack-constants to v1.5.0 2020-10-16 10:31:13 +00:00