Commit Graph

37557 Commits

Author SHA1 Message Date
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
Christopher Allford 39c5bc6b74 Refactored the factory to use a repository instead of an adapter so that we can expose more API functionality 2020-09-07 16:00:27 -07:00
Grzegorz Rola 4cfedf3968 Fixed cart weight return type. 2020-09-07 18:14:01 +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
Rodrigo Primo 1694975910 Fix type of the WC_Query::$product_query property in the documentation 2020-09-05 11:14:57 -03:00
Rodrigo Primo be8dc533ff
Merge pull request #26957 from kevinruscoe/patch-3
Update types
2020-09-05 11:13:10 -03:00
Rodrigo Primo a582589449
Merge pull request #27008 from azzy9/master
Fix the error message shown for the max setting
2020-09-05 11:08:50 -03:00
Rodrigo Primo e320312fc4
Merge pull request #26909 from woocommerce/renovate/pin-dependencies
Pin dependencies
2020-09-05 10:57:01 -03:00
Rodrigo Primo 2f9cd4b249
Merge pull request #27495 from jgreys/fix/26842
Add 27 Egypt regions #26842
2020-09-05 10:48:03 -03:00
Renovate Bot debe085284
Pin dependencies 2020-09-05 13:43:24 +00:00
Rodrigo Primo 7d1fb6d375
Merge pull request #27496 from jgreys/add/krw-locale-info
Add KR locale info
2020-09-05 10:01:05 -03:00
James Collins b84080c67e
Merge branch 'master' into fix/26847-rest-api-auth 2020-09-05 09:02:54 +08:00
Jonathan Sadowski 7f64a7ccd6 Update minimum WordPress version for WooCommerce 4.5 2020-09-04 13:40:01 -05:00
Christopher Allford a875ecb083 Refactored the HTTP layer to be more API-agnostic
Since we're going to be adding more services and CRUD actions it makes sense for our HTTP services to be less tied to the specific REST API implementation.
2020-09-04 11:27:34 -07:00
jonathansadowski 802a31e0d8
Merge pull request #27581 from woocommerce/fix/obw-e2e-test-wc-4-5
Fix OBW e2e test to reflect changes in WooCommerce 4.5 release
2020-09-04 11:44:52 -05:00
Julia Amosova e224cd4b1b Update how disablement of the extensions download is handled in OBW test 2020-09-04 11:47:02 -04:00
KoolPal 41ea743a22
Update includes/class-wc-validation.php
Please proceed with your suggested changes. I cannot continue to debate this.

Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-04 14:12:23 +00:00
Rodrigo Primo 2b5a295db0 Fix variations and attributes layout when running WP >= 5.5
This commit fixes the layout of the sections of the product page in the admin that display variations and attributes. It was broken since WP 5.5 was releases. This version of WP removed a CSS rule that WooCommerce uses (see 22d0cd6c96 (diff-fc8970b78a0739bd367f17c3a8e552e6L1993)). So this commit simply adds this rule back.

See #27326
2020-09-04 09:47:25 -03:00
Nestor Soriano 43642f7835 Enhance the query for "Any" variations in filter by attribute widget.
The new query fixes a bug where variations were being counted twice:
if a product was included in both the queries then it would be counted
differently and added; e.g. when a product had two variations,
one with "Any" attribute and other with a attribute that has a value.

The new query also optimizes performance, so that filter conditions
can be improved and better indexes can be used.
2020-09-04 11:29:50 +02:00
James Collins 59a6c4b330
Authentication fallback if current user is set before WC is initialized
See Issue #26847
2020-09-04 15:55:12 +08:00
James Collins 958896545d
Merge branch 'master' into fix/26847-rest-api-auth 2020-09-04 14:05:14 +08:00
Julia Amosova 4ca4f37969 Update recommended business features checkbox selector in OBW test 2020-09-03 16:23:19 -04:00
Christopher Allford c75f0f8886 Renamed the `@woocommerce/factories` package to `@woocommerce/api`
With the plan now to add more CRUD actions the scope of the package has transformed into a more general API package than one just for factories.
2020-09-03 12:28:17 -07:00
Julia Amosova 552545c0ac Update number of industries in the loop from 10 to 9 2020-09-03 13:17:47 -04:00
Rebecca Scott b92149f94e Bump woocommerce admin version to 1.5.0-rc.5 2020-09-03 14:46:35 +10:00
jonathansadowski ecb25d7dc8
Merge pull request #27572 from woocommerce/update/bump-wc-admin-to-1.5.0-rc.4
Bump WooCommerce Admin to 1.5.0-rc.4; WooCommerce to 4.5.0-rc.3
2020-09-02 19:21:52 -05:00
Christopher Allford c898e1de03 Fixed failing E2E test 2020-09-02 16:14:25 -07:00
Christopher Allford f5771ebd0a Fixed failing E2E test 2020-09-02 16:13:20 -07:00
Christopher Allford b9d314e1ae Fixed another E2E test 2020-09-02 15:47:15 -07:00
Jonathan Sadowski d637db8201 Update composer.lock 2020-09-02 17:26:15 -05:00
Jonathan Sadowski 2e75ca64e8 Bump to WC 4.5.0-rc.3 in woocommerce.php 2020-09-02 17:03:23 -05:00
Christopher Allford dde64b964f Updated lock files & fixed failing E2E test 2020-09-02 14:50:08 -07:00
Christopher Allford d3162b2f1d Updated package-lock.json files 2020-09-02 14:39:49 -07:00
Jonathan Sadowski a70cef214a Bump WooCommerce Admin to 1.5.0-rc.4 2020-09-02 16:33:26 -05:00
Christopher Allford f0023ec276 Added package building to npm install 2020-09-02 14:19:55 -07:00
jonathansadowski dd0a8769d6
Merge pull request #27571 from woocommerce/update/readme-changelog-and-version-for-4.5.0-rc2
Prepare for WC 4.5.0-rc2. Update changelog, readme, and version number.
2020-09-02 15:41:03 -05:00
Christopher Allford 68f0d60048 Resolved package conflicts 2020-09-02 13:07:16 -07:00
Christopher Allford aee44c2935 Merge remote-tracking branch 'origin/master' into add/e2e-feedback-blockers 2020-09-02 12:47:40 -07:00
Christopher Allford 16cf8c81be Revised the default environment variables to pull the version from the latest docker image 2020-09-02 12:47:27 -07:00
Jonathan Sadowski 7352c4ab40 Prepare for WC 4.5.0-rc2. Update changelog, readme, and version number. 2020-09-02 14:39:17 -05:00
jonathansadowski 53c22ba4e4
Merge pull request #27508 from woocommerce/fix/27419
Fix filter by attribute widget now working for "Any..." attributes
2020-09-02 13:32:54 -05:00
jonathansadowski 57e83f9120
Merge pull request #27557 from woocommerce/update/bump-wc-admin-to-1.5.0-rc3
Bump wc-admin to 1.5.0-rc.3
2020-09-02 13:20:54 -05:00
Nestor Soriano 417bcf8fff Split the query for counting terms in the filter by attributes widget.
For performance reasons the query is split in two: one for simple
products and variations with a concrete attribute value, and another
one for variations having "Any..." as the attribute value.
2020-09-02 16:22:25 +02:00