Commit Graph

36293 Commits

Author SHA1 Message Date
Néstor Soriano b105e4a7b7
Merge pull request #27753 from woocommerce/add/composer-bin-plugin
Add composer-bin-plugin
2020-10-08 15:54:44 +02:00
Néstor Soriano e4b78cedbf
Merge pull request #27748 from woocommerce/remove-leftovers-from-improved-filtering-by-attribute-for-variations
Remove leftovers from the reverted improved filtering mechanism for variations
2020-10-08 15:45:09 +02:00
Claudio Sanches 11a886a91a
Merge pull request #27845 from woocommerce/fix-string-capitalization
Revert string capitalization to the original version
2020-10-08 10:22:01 -03:00
Rodrigo Primo 6c5bb58efa
Merge pull request #27841 from woocommerce/update/readme
Update readme opening paragraphs
2020-10-08 10:18:05 -03:00
Rodrigo Primo 0771138604
Merge pull request #27707 from dd32/php8/warnings
PHP8 Warning: Change __wakeup() to a public method
2020-10-08 10:01:21 -03:00
Nestor Soriano e22a20cee8 Revert unintended change to composer.lock 2020-10-08 14:29:11 +02:00
Néstor Soriano ab529835fa
Merge pull request #27840 from woocommerce/php8/fix-required-parameters-after-optional
[PHP 8] Convert optional-before-required parameters into required parameters
2020-10-08 14:22:52 +02:00
Vedanshu Jain 8a9fa0d27b
Merge pull request #27587 from om4james/fix/26847-rest-api-auth
Fix HTTP 401 `woocommerce_rest_cannot_view` `Sorry, you cannot list resources` REST API response
2020-10-08 16:32:03 +05:30
Nestor Soriano a621f07a96 Merge branch 'master' into add/composer-bin-plugin 2020-10-08 12:27:28 +02:00
Néstor Soriano 9c90461b56
Merge pull request #27733 from woocommerce/reinstate-the-dependency-injection-engine
Reinstate the dependency injection engine
2020-10-08 12:15:47 +02:00
Gerhard 945ca8e591 Revert back to using the world's most popular, but link out to source. 2020-10-08 10:43:07 +02:00
Nestor Soriano ca085a8e6b Update composer.lock 2020-10-08 09:30:29 +02:00
Nestor Soriano 62aaa3f73a De-refactor the output function in scripts 2020-10-08 09:28:05 +02:00
Nestor Soriano 69b32246c1 Remove the PHPCS rule for method names as we'll keep them snake_case. 2020-10-08 09:28:05 +02:00
Nestor Soriano d687c0c919 Improvements on prefix-vendor-namespaces.sh
- Prefix also Container's composer.json
- Use one single variant for sed, creating a backup file and
  later deleting it
2020-10-08 09:28:05 +02:00
Nestor Soriano fcd9b115ca Adjust the namespace prefixing script to macOS/Linux
Both OSes have a slightly different syntax for "sed -i" and therefore
two versions of the command are needed.
2020-10-08 09:28:05 +02:00
Nestor Soriano b71f876cba Reintroduce the dependency injection related code.
After the League's Container package has been reintroduced, all the
code that implements the dependency injection mechanism in woocommerce
can be brought back as well.
2020-10-08 09:28:05 +02:00
Nestor Soriano 97618d8fad Reintroduce the League's Container package, and prefix it.
All the classes in the package are re-namespaced from
"Leage\Container" to "Automattic\WooCommerce\Vendor\League\Container"
to prevent conflicts with extensions using the same plugin.

The re-namespacing is done by using a simple text substitution
on all the code files (see prefix-vendor-namespaces.sh), for this
particular case this approach is enough.
2020-10-08 09:28:01 +02:00
Néstor Soriano 3e6861189e
Merge pull request #27848 from woocommerce/php8/remove-useless-test-assertion
[PHP 8] Remove a useless test assertion that fails in PHP 8
2020-10-08 09:06:39 +02:00
James Collins 79dd557b77
Return true to indicate that authentication using this method was successful 2020-10-08 09:33:33 +08:00
Ron Rennick 2380e9d376
Merge pull request #27432 from woocommerce/fix/e2e-url-no-port
Add support for URLs without a port to test:e2e
2020-10-07 15:51:45 -03:00
Ron Rennick 577494796c
Merge pull request #27736 from woocommerce/fix/27681
Update taxonomy template file names to `-`
2020-10-07 15:23:11 -03:00
Ron Rennick 67a54b3aa3
Merge pull request #27289 from woocommerce/fix/27222
use first gallery image on single product when image not assigned
2020-10-07 15:06:30 -03:00
Claudio Sanches a0648fb52c
Merge pull request #27890 from Knyazevich/fix/24136
Fixed: Draft post set as shop page causes trouble
2020-10-07 14:12:30 -03:00
Ron Rennick 3a980a1241 merge current master 2020-10-07 03:17:38 -03:00
Ron Rennick 84fdfb6769 merge master 2020-10-07 03:05:04 -03:00
Julia Amosova aac4db94b2
Merge pull request #27679 from woocommerce/packages/e2e/config-functions
add eslint & babel config functions to e2e-environment
2020-10-06 14:15:56 -04:00
Christopher Allford b3da18a14b Merge branch 'master' into add/composer-bin-plugin 2020-10-06 10:13:47 -07:00
Knyazevich ce59afb2b9 Simplify drafts excluding logic (ref #24136) 2020-10-06 18:11:58 +03:00
Knyazevich f551c6c792 Exclude drafts from the "Shop page" select (ref #24136) 2020-10-06 06:42:56 +03:00
Ron Rennick df60bfb054
Merge pull request #27276 from woocommerce/fix/docker-ssh
Fix e2e docker:ssh command to work in any repo
2020-10-05 09:51:56 -03:00
Ron Rennick ab4a46e32e
Merge pull request #27299 from woocommerce/fix/27116
allow variation image to be removed via REST API
2020-10-05 09:33:50 -03:00
Nestor Soriano ed33a607a7 Remove a useless test assertion that fails in PHP 8
The assertion is useless (the constant is already tested a few Lines
above), and it was failing in PHP 8 because 'auto' < 2 is evaluated
as false, while it's evaluated to true in PHP 7.
2020-10-02 15:27:26 +02:00
Rodrigo Primo b1a1984bdd Revert string capitalization to the original version
PR #25419 added a filter to change the value of the text in a button in
the cart-empty.php template. But it mistakenly changed the
capitalization of the string from 'Return to shop' to 'Return To Shop'.
This commit simply restores the string to its original version.
2020-10-02 08:41:25 -03:00
Gerhard 0fd329c57f Adjust short description and opening paragraph to mention ecommerce 2020-10-02 13:36:34 +02:00
Gerhard 029316c7a4 Update readme opening paragraphs 2020-10-02 12:13:11 +02:00
Nestor Soriano 7485b9165f Convert optional-before-required arguments to required.
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-02 09:45:09 +02:00
Nestor Soriano 53d33457e3 Fix code style/sniffer errors in a few files. 2020-10-02 09:34:09 +02:00
Rodrigo Primo 788969d2bb
Merge pull request #27832 from woocommerce/update/woocommerce-admin/1.6.0-rc.3
Update woocommerce-admin to 1.6.0-rc.3
2020-10-01 15:41:59 -03:00
Rodrigo Primo 7d5ac90ff0
Merge pull request #27822 from woocommerce/fix/set-activation-redirect-transient-for-new-installs-only
Update the activation transient to only get added on new installs
2020-10-01 15:06:44 -03:00
Ron Rennick c17b6b5ad0 Update expected industry count 2020-10-01 14:46:04 -03:00
Ron Rennick 4af90518da lock file maintenance 2020-10-01 14:21:40 -03:00
Timmy Crawford 7efccce126 Update woocommerce-admin to 1.6.0-rc.3 2020-10-01 06:39:57 -07:00
Jonathan Sadowski e540b4820e Rename maybe_enable_setup_wizard to maybe_set_activation_transients 2020-09-30 17:27:43 -05:00
Jonathan Sadowski 83238ec1d7 Move maybe_enable_setup_wizard abode update_wc_version so new install is detected 2020-09-30 17:01:43 -05:00
Jonathan Sadowski 95755cb59d Update the activation transient to only get added on new installs 2020-09-30 16:00:45 -05:00
Christopher Allford d245a60c6e
Merge pull request #27739 from woocommerce/packages/factories-to-api-refactor
Transform @woocommerce/model-factories into @woocommerce/api
2020-09-30 13:46:04 -07:00
jonathansadowski 2c1fe4235d
Merge pull request #27806 from woocommerce/fix/wca-install-redirect
Add back in activation transient to redirect on install
2020-09-29 16:23:10 -05:00
Joshua Flowers 048c43a37f Add back in activation transient to redirect on install 2020-09-29 14:25:15 -04:00
Ron Rennick 802b364b05 Merge branch 'master' into fix/27681 2020-09-28 16:17:51 -03:00