Commit Graph

28055 Commits

Author SHA1 Message Date
Khan M Rashedun-Naby c3f4826caf wc_get_rating_html refactored 2018-05-25 16:10:26 +06:00
Mike Jolley 2a10ef31fa
Merge pull request #20212 from rnaby/240518-225308-wc-core-functions-wc_remove_number_precision_deep
wc_remove_number_precision_deep logic simplified
2018-05-25 10:39:48 +01:00
Mike Jolley 571919936c
Merge pull request #20210 from rnaby/240518-223657-wc-core-functions-wc_rand_hash
wc_rand_hash logic simplified
2018-05-25 10:33:41 +01:00
Mike Jolley f05167df17
Merge pull request #20222 from liquidweb/fix/iso-3166-1-alpha-2
Ensure tests use ISO 3166-1 alpha-2 country codes
2018-05-25 10:32:48 +01:00
Mike Jolley 171139295c
Merge pull request #20193 from woocommerce/fix/20192
Fix WC_Coupon constructor with Coupon object
2018-05-25 10:29:38 +01:00
Khan M Rashedun-Naby 52d28b69c2 Removed Else 2018-05-25 10:45:38 +06:00
Steve Grunwell 4bbf9c364d Ensure tests use ISO 3166-1 alpha-2 country codes
[According to the WooCommerce wiki](https://github.com/woocommerce/woocommerce/wiki/Order-and-Order-Line-Item-Data) and `WC_REST_Orders_Controller`, WooCommerce stores country codes using the ISO 3166-1 alpha-2 (2 character) standard. However, the `WC_Tests_Order_Functions::test_wc_get_order_address_params()` test method was using 'USA' instead of 'US'.
2018-05-24 20:50:01 +00:00
Mikey Arce 3be6333040 Display price filter widget in LTR for RTL sites
When dealing with numeric properties, they should be in LTR for sites whose language is set to RTL.

This changes the price filter widget to be shown in LTR for RTL sites.
2018-05-24 13:23:52 -07:00
Allen Snook 745b6bff29 Expand eraser and exporter friendly names for scope clarity 2018-05-24 12:56:32 -07:00
Mike Jolley 54357733bd
Merge pull request #20202 from jamesckemp/patch-10
Allow HTML when using `wc_attribute_label()`
2018-05-24 20:45:45 +01:00
Mike Jolley a05059f3eb redundent check 2018-05-24 20:44:02 +01:00
Mike Jolley 4cdae90aa4 Avoid new method
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:41:20 +01:00
Mike Jolley 974d33eb85 Prevent action running for non-instance screens
Co-Authored-By: grola <grola@users.noreply.github.com>
2018-05-24 20:35:48 +01:00
James Kemp 596e6e2271 Add filter to sanitize woocommerce_attribute_label 2018-05-24 19:32:32 +01:00
James Kemp 71a4f1079f Revert "Escape attributes labels but allow HTML"
This reverts commit f7fa7b6a41.
2018-05-24 19:30:48 +01:00
Khan M Rashedun-Naby 4a8b7b876e woocommerce_pagination refactored 2018-05-24 23:23:10 +06:00
Mike Jolley 9237353a83 Made constructor more readable with protected method 2018-05-24 18:19:42 +01:00
Khan M Rashedun-Naby 18ae4c8d5c wc_setup_product_data refactored 2018-05-24 23:11:13 +06:00
Khan M Rashedun-Naby 5b079343e8 Early return 2018-05-24 23:02:07 +06:00
Khan M Rashedun-Naby 2725cd56d4 wc_remove_number_precision_deep logic simplified 2018-05-24 22:55:00 +06:00
Khan M Rashedun-Naby cb7b853199 wc_rand_hash logic simplified 2018-05-24 22:42:56 +06:00
Peter Fabian 187eff6e95
Merge pull request #20205 from woocommerce/fix/20204
If the file size cannot be read, ignore range headers.
2018-05-24 17:26:09 +01:00
Mike Jolley 8e5efd9122
Merge pull request #19980 from urosmil/patch-2
Add endpoints to account menu items filter
2018-05-24 17:17:00 +01:00
Mike Jolley 8bcf32c68d
Merge pull request #19981 from timothyjensen/coupon-usage-count-hooks
Add coupon usage count hooks
2018-05-24 17:16:17 +01:00
Mike Jolley 3a673aa4e9
Merge pull request #20000 from woocommerce/update/19983
Exclude frontend include from REST API calls
2018-05-24 17:11:27 +01:00
Mike Jolley d5e6b21b38
Merge pull request #20206 from CHEWX/bug-menu-endpoint-title
[menu] - change title to capitalized to match wp core
2018-05-24 17:06:07 +01:00
Mike Jolley 7df57c2cd1
Merge pull request #20207 from woocommerce/fix/20185
Excluded children categories from WP_Query in product shortcode if cat_operator=AND
2018-05-24 17:01:43 +01:00
Mike Jolley dac3da8b26
Merge pull request #20079 from rnaby/150518-154336
wc_get_object_terms refactored
2018-05-24 16:35:35 +01:00
Mike Jolley f5343cf4c7
Merge pull request #20067 from rnaby/150518-000347
ElseIf and Else Statement Removed
2018-05-24 16:33:56 +01:00
Mike Jolley 4666359840
Merge pull request #20074 from rnaby/150518-080603
wc_list_pages function refactored
2018-05-24 16:33:32 +01:00
Mike Jolley 18ea88d05d
Merge pull request #20077 from rnaby/150518-150047
Unnecessary Else Removed
2018-05-24 16:32:21 +01:00
Mike Jolley 73d047a0e8
Merge pull request #20102 from rnaby/160518-204323
Removed Else
2018-05-24 16:29:08 +01:00
Mike Jolley 2f87873ca5
Merge pull request #20093 from rnaby/160518-090545
Little clean up and fix
2018-05-24 16:26:15 +01:00
Mike Jolley 83a9831dc0
Merge pull request #20092 from rnaby/160518-084433
wc_get_loop_class logic simplified
2018-05-24 16:25:26 +01:00
Mike Jolley c1de1d6fb7 Master is 3.5.0-dev 2018-05-24 16:20:05 +01:00
Peter Fabian 082c1dfaf3 Excluded children categories from WP_Query in product shortcode if cat_operator=AND. 2018-05-24 16:12:48 +01:00
Mike Jolley b7099509ee If the file size cannot be read, ignore range headers.
Fixes #20204
2018-05-24 16:10:45 +01:00
Tom Hopcraft daf301e83c [menu] - change title to capitalized to match wp core 2018-05-24 15:56:13 +01:00
Mike Jolley d9d2093d50 Log errors from transaction emails with logger
Closes #20118
2018-05-24 15:37:00 +01:00
James Kemp 16785b33ab Do not escape HTML for attribute label 2018-05-24 15:29:53 +01:00
James Kemp f7fa7b6a41
Escape attributes labels but allow HTML
Escape attribute labels with wp_kses_post so HTML is allowed if required.
2018-05-24 15:15:35 +01:00
Mike Jolley a2a099f23d Export legacy paypal meta data in exporter 2018-05-24 15:06:53 +01:00
Mike Jolley 2b52d00cb5
Merge pull request #20195 from Spreeuw/patch-4
Update address-i18n.js
2018-05-24 14:48:11 +01:00
Mike Jolley 725639bb96 "payment tokens" terminology 2018-05-24 13:42:20 +01:00
Ewout Fernhout 292be93403
Update address-i18n.js
fixes #20194
2018-05-24 14:37:21 +02:00
Gerhard Potgieter 3c2221a4b0 Add a exception test to coupon delete 2018-05-24 12:37:52 +02:00
Gerhard Potgieter 9bc6ca5df3 Fix the coupon data store delete unit test, you should not have been able to create a new datastore from a deleted coupon ID. See product data store tests are reference for this. 2018-05-24 12:26:36 +02:00
Gerhard Potgieter 07c18b59f0 Add unit test to test again passing a coupon object in the constructor 2018-05-24 11:28:24 +02:00
Gerhard Potgieter 288b5d9117 Refactor WC_Coupon constructor to allow for passing in coupon objects 2018-05-24 11:21:41 +02:00
Gerhard Potgieter dbafe34ed2 Fix test to test the actual file upload and not just the import 2018-05-24 09:18:26 +02:00