Roy Ho
ae29a798ed
Merge pull request #28836 from woocommerce/fix/docblocks
...
Fixed docblock of new hooks of 5.0
2021-01-18 10:10:18 -08:00
Claudio Sanches
e9abfa1669
Fixed docblock of new hooks of 5.0
2021-01-18 13:44:15 -03:00
Roy Ho
4c548951f4
Merge pull request #28521 from woocommerce/fix/26475
...
Create additional download permissions on product save if needed
2021-01-18 06:51:57 -08:00
Roy Ho
56e67b1ef8
Merge pull request #28814 from woocommerce/fix/migration/27688
...
Add migration to fix incorrect product review count.
2021-01-18 06:48:46 -08:00
Roy Ho
8d9cee749c
Merge pull request #28835 from woocommerce/revert/28204
...
Revert "pass email object to header and footer templates"
2021-01-18 06:24:48 -08:00
vedanshujain
2240d3a6e4
Fix typos.
2021-01-18 19:52:20 +05:30
vedanshujain
1758c2b58c
Add tests for #28835
2021-01-18 17:26:19 +05:30
vedanshujain
5885e9a29e
Revert "pass email object to header and footer templates"
...
This reverts commit 8821bf41c5
.
2021-01-18 16:51:31 +05:30
Nestor Soriano
544df16588
Set exception message as translatable
2021-01-18 09:18:38 +01:00
vedanshujain
9f9475a18b
Addressed PR feedback.
...
1: Use placeholder to be able to use wpdb->prepare for IN query.
Update version number.
2021-01-18 10:29:42 +05:30
Claudio Sanches
3a0bb38c9d
Merge pull request #28828 from woocommerce/revert-28401-patch-2
...
Revert "Use %1$s instead of %s on regen description"
2021-01-15 20:27:17 -03:00
Claudio Sanches
29ccfd961b
Revert "Use %1$s instead of %s on regen description"
2021-01-15 20:27:03 -03:00
Claudio Sanches
b462b3c8ee
Merge pull request #28401 from bordoni/patch-2
...
Use %1$s instead of %s on regen description
2021-01-15 20:21:03 -03:00
Ron Rennick
85a03584df
Merge pull request #28665 from woocommerce/e2e-shopper-checkout-apply-coupon
...
Add new e2e test shopper checkout apply coupon
2021-01-15 13:27:28 -04:00
Ron Rennick
3950f61f8f
fix merge conflict
2021-01-15 12:52:00 -04:00
Claudio Sanches
5ca7c51714
Merge pull request #28712 from woocommerce/add/config_merchant_email_notifications
...
Added merchant email note switch
2021-01-15 13:32:02 -03:00
Claudio Sanches
e698ed72fd
Merge pull request #28801 from liquidweb/refactor/shipping-zone-read
...
Refactor the WC_Shipping_Zone_Data_Store::read() method
2021-01-15 12:58:36 -03:00
Claudio Sanches
44b9ffbdd7
Merge pull request #28713 from joseagrc/master
...
Adding states for Dominican Republic
2021-01-15 12:50:14 -03:00
Veljko V
cce8983f14
Update test case to avoid conflict with master
2021-01-15 16:41:26 +01:00
Claudio Sanches
55cfa098d5
Merge pull request #28709 from kevinruscoe/fix/28707
...
Export sass vars to css var
2021-01-15 11:27:14 -03:00
Peter Fabian
84b647a65d
Merge pull request #28778 from AminulBD/master
...
Update states.php
2021-01-15 15:26:03 +01:00
Claudio Sanches
a9a7391fdd
Apply suggestions from code review
2021-01-15 11:25:36 -03:00
Claudio Sanches
d60ffa1e73
Merge pull request #28405 from szepeviktor/patch-5
...
Fix .gitignore
2021-01-15 11:19:37 -03:00
Peter Fabian
02a2bbad71
Merge pull request #28799 from woocommerce/fix/issue-27789
...
Add notice to deprecate old reports closes #27789
2021-01-14 19:05:44 +01:00
jonathansadowski
e8552094c2
Merge pull request #28809 from woocommerce/fix/issue-27791
...
Prevent duplicate new order email from being sent when changing order…
2021-01-14 09:36:30 -06:00
Ron Rennick
57d8a00682
Merge pull request #28684 from woocommerce/fix/28682
...
introduce evalAndClick() E2E utility function
2021-01-14 09:41:10 -04:00
roykho
5b4e3a2e2e
Add margin
2021-01-14 05:25:26 -08:00
vedanshujain
2e4f2ef478
Add migration function for fixing existing product review counts.
2021-01-14 18:35:14 +05:30
vedanshujain
2dce182cf8
Add unit tests for review count methods.
2021-01-14 18:31:02 +05:30
vedanshujain
23618b06ed
Add utility function for getting review counts in bulk for convinience.
...
Also refactors get_review_count_for_product to use the new method so that we only would have to maintain one method.
2021-01-14 18:27:41 +05:30
Néstor Soriano
b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
...
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Nestor Soriano
8b0bd248d6
Attach hook for adjust_download_permissions from within init_hooks
...
The DownloadPermissionsAdjuster class hooks to adjust_download_permissions
from within its init method. However this method is executed only
if the class is resolved, otherwise the hooks doesn't get attached
and then the scheduled action is not serviced.
To solve this, the class is resolved from WooCommerce::init_hooks.
This requires a change in DownloadPermissionsAdjuster::init
to use wc_get_container()->get( LegacyProxy::class )->get_instance_of
instead of WC()->get_instance_of, since WC() can't be used from
WooCommerce::construct (which invokes init_hooks).
2021-01-14 11:40:11 +01:00
Nestor Soriano
c9ea5922e2
Add a comment to wc_ascii_uasort_comparison explaining why setlocale is needed.
2021-01-14 11:16:42 +01:00
roykho
218c799811
Prevent duplicate new order email from being sent when changing order status closes #27791
2021-01-13 14:13:57 -08:00
Roy Ho
0d2f478eab
Merge pull request #28690 from kevinruscoe/fix/28652
...
Ensure the orders status is reverted correctly when restoring it.
2021-01-13 13:54:26 -08:00
Kevin Ruscoe
a78c1ec99e
wp_untrash_post_status should be static as pointed out by roykho
2021-01-13 21:22:30 +00:00
Claudio Sanches
1f321f4a79
Merge pull request #28719 from raicem/update/featured-products-endpoint
...
Add Auth token for search/featured extensions requests
2021-01-13 18:13:25 -03:00
raicem
eb3ba820da
Use "wp_safe_remote_get" for sending search requests
2021-01-13 23:53:53 +03:00
Claudio Sanches
889e83e64c
Merge pull request #28698 from woocommerce/fix/28697
...
Add transient and action for proxying WC plugin activation hook
2021-01-13 16:49:51 -03:00
Veljko V
d1150b25dc
Update changelog to include added parameter
2021-01-13 19:34:46 +01:00
roykho
8e7a59d959
Change location of the notice so it shows up in all reports
2021-01-13 07:00:37 -08:00
Ron Rennick
b477cb8d3a
only activate WooCommerce in E2E initialization ( #28588 )
...
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Nestor Soriano
2ec002defa
Add unit tests for DownloadPermissionsAdjuster::adjust_download_permissions
2021-01-13 12:11:15 +01:00
Ilyas Foo
0e5596d1fc
Transient and action passes plugin filename
2021-01-13 09:52:17 +08:00
Roy Ho
b7e45c3073
Merge pull request #28607 from masteradhoc/masteradhoc-patch-speak-none
...
patch for css3 validation issue for speak property
2021-01-12 12:38:45 -08:00
Steve Grunwell
e32dd6c4d3
Add a new WC_Shipping_Zone_Data_Store_CPT_Test class to support the refactoring of WC_Shipping_Zone_Data_Store_CPT::read()
2021-01-12 18:26:00 +00:00
Steve Grunwell
8d3803452d
Refactor the WC_Shipping_Zone_Data_Store::read() method
...
This commit re-works the `WC_Shipping_Zone_Data_Store::read()` method in the following ways:
1. Remove a confusing conditional (`if ( 0 !== $zone->get_id() || '0' !== $zone->get_id() ) { ... }`)
2. Return early if we're dealing with Zone 0, eliminating additional conditional steps
3. Add documentation for the "woocommerce_shipping_zone_loaded" action hook
2021-01-12 12:53:22 -05:00
roykho
6041c10ea3
Add notice to deprecate old reports closes #27789
2021-01-12 07:37:00 -08:00
Nestor Soriano
2d83db8b66
Add tests for DownloadPermissionsAdjuster::maybe_schedule_adjust_download_permissions
...
Also replace direct invocations of functions with usages of the
LegacyProxy whenever needed, and code style ajustments.
2021-01-12 12:07:38 +01:00
Nestor Soriano
afe7bdc6b3
Add a test for the added functionality of LegacyProxy.
2021-01-12 10:16:00 +01:00