Galen Wright-Watson
65bb805cbb
Fix: #22572-can't access settings ("The link you followed has expired"). Cause: if anything adds to `$_POST`, this triggers WooCommerce to try to save settings; if there's no nonce, authorization fails, resulting in the message. Soln: check for specific element ('save') in `$_POST` to determine whether to save elements, rather than testing that `$_POST` is non-empty.
2019-01-25 18:08:00 -08:00
Ian Jenkins
d7e32e1c77
Remove possibe superfluous wp_attachment_is_image() filter.
...
The reason to remove this is that this function uses get_post() under
the hood which always assumes the attachment is on the same site, where
as if you're using a plugin such as
https://github.com/humanmade/network-media-library it might not be.
I'm not sure if there's any adverse affects of not doing this filtering,
from my testing, it still seems to work in the same way.
2019-01-25 15:11:58 +00:00
Ron Rennick
60a6895eee
php sniff fixes for class-wc-rest-product-categories-controller.php
2019-01-25 09:53:37 -04:00
claudiulodro
78e5189334
Better @id generation for product structured data
2019-01-24 11:49:44 -08:00
Ron Rennick
e73eabf679
use `name` for POST/PUT category image name for consistency in api V3
2019-01-24 15:38:45 -04:00
claudiulodro
8078e6bfc2
Simplified title check that works on all wc widgets
2019-01-24 10:47:05 -08:00
Prince Ahmed
78e4ef5f38
Fix test get request
...
During test Remote GET Request,
in the error checking area used $post_response instead of using $get_response.
2019-01-24 21:59:09 +06:00
Mike Jolley
00a93ae8f0
Merge pull request #22112 from Prospress/fix/22101
...
Introduce wc_attribute_taxonomy_slug()
2019-01-23 21:57:07 +00:00
Mike Jolley
5b40f24adc
Merge pull request #22526 from woocommerce/fix/21299
...
Sort terms by parent and work back from bottommost term
2019-01-23 21:36:55 +00:00
Mike Jolley
e171718534
Merge pull request #22529 from james-allan/custom_coupon_usage_limit
...
Keep count of the number of times custom coupons apply
2019-01-23 21:36:19 +00:00
Mike Jolley
9b655c0ba7
Use hasSelectiveRefresh
2019-01-23 21:29:55 +00:00
Mike Jolley
624700267b
Merge branch 'master' into pr/20830
2019-01-23 20:56:35 +00:00
Mike Jolley
6cfd5db528
Merge pull request #22524 from woocommerce/fix/22499
...
Option "Used for variations" should not appear for non-variable product types
2019-01-23 20:22:49 +00:00
Mike Jolley
20330b01bd
Merge pull request #22531 from rellect/fix_ssl_check
...
Fix ssl check in case shop page no longer exists
2019-01-23 20:18:43 +00:00
Mike Jolley
467681c788
Merge pull request #22537 from woocommerce/fix/22450
...
round variation percentage price adjustments to decimal setting
2019-01-23 20:15:12 +00:00
Mike Jolley
407a5954dc
Merge pull request #22464 from woocommerce/fix/22245
...
include tax in subtotals when validating coupon minimum and maximum
2019-01-23 19:54:12 +00:00
Ron Rennick
6709049cbc
round variation percentage price adjustments to decimal setting
2019-01-23 14:04:04 -04:00
Mike Jolley
e9f0490829
Merge pull request #21719 from vyskoczilova/master
...
Custom settings on shipping section (#13463 , #13461 )
2019-01-23 17:07:13 +00:00
Mike Jolley
6a89a76c11
Merge 17796
2019-01-23 16:39:21 +00:00
Mike Jolley
613a095362
Exclude paged from price slider
2019-01-23 15:31:26 +00:00
Refael Iliaguyev
398bbe3754
sniff fixes
2019-01-23 17:26:17 +02:00
Mike Jolley
9cdcc3f1e5
Merge pull request #21817 from woocommerce/feature/pages-gutenberg-support
...
Use shortcode block for WooCommerce default pages
2019-01-23 15:25:28 +00:00
Mike Jolley
f96d59ac2b
Merge branch 'pr/21043'
2019-01-23 15:16:50 +00:00
Mike Jolley
987a24afdc
Timeout param
2019-01-23 15:16:40 +00:00
Ron Rennick
a6b1c45740
phpcs sniff fixes for class-wc-rest-products-v2-controller.php
2019-01-23 11:13:25 -04:00
Gerhard Potgieter
f77e2d7316
Handle full refunds in the taxes by code report ( #21843 )
...
* Add full refund support to the taxes by code report.
* Some PHPCS fixes
* Do not include refund in initial tax lookup for report.
* Correct logic which loops orders
* match date report
2019-01-23 15:12:58 +00:00
Ron Rennick
8709351994
update function name to `wc_attribute_taxonomy_slug`
2019-01-23 11:11:27 -04:00
Ron Rennick
b868b484f7
fix merge conflicts
2019-01-23 10:53:42 -04:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Luigi
548b00c660
Improve the way we do queries ( #22043 )
...
* Improve the way we do queries
* PHP legacy compatible
* Update aproach to filter queries with empty values
* Fixing Unit Tests
* Moving Unit Test to its the correct test function
* Filter missing the new param, allow_empty, also simplifiying unit test.
* Helper function to create counpon does not support empty coupon codes
* Helper function does not need to allot empty search
* Wrong code standard
* Fixing Code Standard Unit Test
2019-01-23 13:46:32 +00:00
Mike Jolley
e8710e4ad6
Merge pull request #22530 from treibalen/master
...
Change footer wording for WooCommerce emails
2019-01-23 13:28:31 +00:00
Mike Jolley
99f663ad5c
Merge pull request #22131 from willgorham/improve-shipping-zone-continents
...
Improve shipping zone continents [Fixes #22130 ]
2019-01-23 13:27:16 +00:00
Mike Jolley
57ae0bec9d
Merge pull request #22073 from bekarice/fix/partial-refund-webhooks
...
Send webhooks for partial refund creation
2019-01-23 13:02:44 +00:00
Mike Jolley
30f5e1f88e
Merge pull request #21727 from woocommerce/fix/21663
...
Update sample_products.xml to include attachments
2019-01-23 12:58:39 +00:00
treibalen
178c7a7a9c
Change wording for WooCommerce emails
...
Change emails footer from "Powered by WooCommerce" to "Built with WooCommerce"
2019-01-23 13:50:08 +05:30
James Allan
767abb3a8a
Keep count of the number of times custom coupons apply
2019-01-23 16:47:52 +10:00
Ron Rennick
89ab2748da
update unit test to work when timezone_string is not set, add timezone assertions
2019-01-22 16:58:05 -04:00
Ron Rennick
8e12f9607d
use WP standard datetime format for installs where timezone_string setting is not set
2019-01-22 15:47:56 -04:00
Mike Jolley
7cd20021e0
Sort terms by parent and work back from bottommost term
...
Fixes the issue described in #21299 by sorting terms by parent ID.
Remove the extra get_term call because we already have a term object.
Since we support 4.7+, also removed function exists for wp_list_sort function.
2019-01-22 19:06:58 +00:00
Will Gorham
45e7f344b1
Use shipping countries instead of selling countries
2019-01-22 13:51:35 -05:00
Mike Jolley
2a2863c5ba
Merge pull request #21648 from EmranAhmed/master
...
Add 3rd param on `woocommerce_product_option_terms` action to use custom attribute types on product attribute create
2019-01-22 18:28:24 +00:00
Mike Jolley
9b2866a310
Merge branch 'pr/21722'
2019-01-22 18:20:45 +00:00
Ron Rennick
343a217939
move add order tax to get_object_subtotal()
2019-01-22 13:42:37 -04:00
Mike Jolley
43ba62dc86
Merge pull request #22067 from Prospress/fix/22046
...
populate default variation attributes when it is the first variation
2019-01-22 17:29:54 +00:00
Rodrigo Primo
d08745e041
'Used for variations' checkbox should only appear for variable products
...
When editing product attributes, the checkbox 'Used for variations' should only be displayed when editing a variable product. The code has checks in place to control the display of this checkbox when adding an attribute or when loading the product attributes, but it was missing a check when saving product attributes which is added in this commit.
2019-01-22 15:13:02 -02:00
Rodrigo Primo
a713e63502
Fix eslint errors
2019-01-22 15:04:43 -02:00
Mike Jolley
ed95fe2cd3
Merge pull request #22066 from Prospress/fix/22065
...
add is_array check to catalog ordering orderby
2019-01-22 16:25:20 +00:00
Mike Jolley
c99495488b
Merge pull request #22458 from woocommerce/fix/22456
...
Set order vat exempt status to that of customer on checkout.
2019-01-22 16:13:36 +00:00
Mike Jolley
581d3c3195
Merge branch 'pr/22290'
2019-01-22 16:05:56 +00:00
Mike Jolley
11b172d583
phpcs
2019-01-22 16:04:16 +00:00