Commit Graph

30168 Commits

Author SHA1 Message Date
Job 489c753a97
Merge pull request #1 from woocommerce/master
update
2019-01-28 12:20:57 +01:00
Ron Rennick 28710a522e phpcs sniff fixes for orders.php 2019-01-27 20:57:58 -04:00
Ron Rennick d888f456f8 remove line item subtotal adjustment from api coupon unit test 2019-01-27 20:49:02 -04:00
Ron Rennick a93418b826 phpcs sniff fixes for class-wc-report-sales-by-product.php 2019-01-27 19:27:30 -04:00
Ron Rennick f42c42066b include refunded orders in top sellers, earners in sales by product report 2019-01-27 19:24:08 -04:00
Ron Rennick 3f24ad8d4c phpcs sniff fixes for abstract-wc-order.php 2019-01-27 11:38:08 -04:00
Galen Wright-Watson baeccdc547 Fix: #22577-"bad flag in substitute command" if password has a '/' character. Cause: unescaped special characters (forward slash) in variable get interpreted as part of sed script. Soln: escape forward slashes when interpolating into sed script. 2019-01-26 23:53:02 -08:00
Ron Rennick d32f189f27 recalculate coupons after adding to order 2019-01-26 23:57:32 -04:00
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
Peter Fabian 33584e767f Renamed function
As legacy REST API will be removed soon anyway.
2019-01-25 10:07:32 +01: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
Peter Fabian d390528d79 Updated check to only cover non-legacy REST API requests.
Updated filter name.
2019-01-24 12:06:47 +01:00
Peter Fabian 2d5fc8ef7d Merge branch 'master' into fix/20937-v0.1 2019-01-24 11:19:46 +01: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 59c97539b3 Trigger loaded hook once plugins are loaded. 2019-01-23 16:20:26 +00:00
Mike Jolley a2f77ba7ec phpcs 2019-01-23 16:19:40 +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