Commit Graph

15874 Commits

Author SHA1 Message Date
TheDramatist d8aa0aba90 WC_Data_Store | Exception throwing @throws PHPDoc comment added (#20352)
* Exception throwing @throws PHPDoc comment added

* Exception throwing @throws PHPDoc comment added
2018-06-04 10:45:53 +01:00
Khan M Rashedun-Naby 058b99fdf4 getOffset Refactor 2018-06-02 23:47:05 +06:00
Caleb Stauffer d4d771437c fix bug with cart coupon text (without introducing new filter) 2018-06-01 22:44:03 -04:00
Allen Snook bfb6bff87c Do not export a customer data group containing no data 2018-06-01 14:58:09 -07:00
Claudiu Lodromanean c68b8faa99
Merge pull request #20203 from woocommerce/update/20118
Log errors from transaction emails with logger
2018-06-01 13:43:33 -07:00
claudiulodro 5fbb997949 Format shipping info when copied from billing 2018-06-01 08:28:18 -07:00
Mike Jolley 3f0544450e
Merge pull request #20308 from woocommerce/fix/cache-flush-0
Clear category 0 when deleting caches
2018-06-01 10:32:44 +01:00
Caleb Stauffer 6fc7a2d7cc add filter to toggle between coupon's discount amount and free shipping text 2018-05-31 20:44:49 -04:00
claudiulodro cd303d3540 Fix typo in error message 2018-05-31 12:40:58 -07:00
Claudiu Lodromanean 07bad6975f
Merge pull request #19951 from woocommerce/update/19745
Eircode validation and formatting
2018-05-31 20:31:46 +01:00
Claudiu Lodromanean a4b9346f66
Merge pull request #19969 from robertdevore/master
Add three new action hooks for admin shipping zone methods
2018-05-31 20:25:34 +01:00
Claudiu Lodromanean d1a90f14da
Merge pull request #20180 from woocommerce/fix/20178
Check billing email is posted before using
2018-05-31 19:57:18 +01:00
Claudiu Lodromanean 205a8fa513
Merge pull request #20125 from woocommerce/fix/20054
Don't force default token gateway active by default
2018-05-31 19:54:42 +01:00
Mike Jolley 25d025c01e Show empty terms in admin dropdown 2018-05-31 11:24:23 +01:00
Mike Jolley 1d43233306 Adds missing 2017 RTL styles 2018-05-31 10:34:08 +01:00
Robert DeVore ecdf6c3be0
Removed two action hooks 2018-05-30 15:53:04 -04:00
Mike Jolley c74540fb1e
Merge pull request #20046 from woocommerce/feature/custom-shipping-calc-data
Allows manipulate cart shipping calculator data
2018-05-30 16:00:21 +01:00
Mike Jolley 79c34ba843
Merge pull request #20089 from woocommerce/fix/20042
Allow oAuth1.0a under SSL
2018-05-30 15:37:45 +01:00
urosmil 19efe63fe8 Improved wc_add_to_cart_message filter (#19817)
* Improved wc_add_to_cart_message filter

Added product quantity parameter to filter, as it is relevant for construction of message and passed through function call.

* Removed param from deprecated function

Param has been removed from deprecated function as suggested
2018-05-30 14:53:15 +01:00
Mike Jolley 814c62aaf2 merge master 2018-05-30 14:35:32 +01:00
Mike Jolley e68e8e8273
Merge pull request #20244 from woocommerce/update/20025
Introduce is_paypal_supported_currency check in setup wizard
2018-05-30 14:07:34 +01:00
Mike Jolley 34e27fa930 Missed a json encode 2018-05-30 14:05:06 +01:00
Mike Jolley 2e56d79628
Merge pull request #20246 from boodaah/master
Add anchor tag example to email template preview
2018-05-30 14:03:30 +01:00
Mike Jolley f866349a03
Merge pull request #20251 from Ismail-elkorchi/fix/wc_maybe_define_constant_doc
Update wc_maybe_define_constant Docblock
2018-05-30 14:03:06 +01:00
Mike Jolley c326115db2 Clear category 0 when deleting caches 2018-05-30 13:29:44 +01:00
Mike Jolley 34d4c9cca2
Merge pull request #20298 from woocommerce/fix/array-combine-tests
Prevent array_combine errors in old versions of PHP
2018-05-29 18:54:12 +01:00
Mike Jolley b102e7c89b
Merge pull request #20294 from woocommerce/update/php-notice
Remove red styling for PHP notice if using > 5.6
2018-05-29 18:25:33 +01:00
Mike Jolley 75e357c1a9 Prevent array_combine errors in old versions of PHP 2018-05-29 18:13:26 +01:00
Mike Jolley 5504f966a4
Merge pull request #20293 from woocommerce/fix/20276
Fix variable attribute selection based on query string and form posts
2018-05-29 15:54:57 +01:00
Mike Jolley bcc1a350ce Remove red styling for PHP notice if using > 5.6 2018-05-29 15:52:01 +01:00
Mike Jolley 5cfd2f0f7a
Merge pull request #20273 from woocommerce/fix/20268
Fix broken product import file uploads on windows
2018-05-29 15:27:40 +01:00
Mike Jolley 800701adb0 Pass varaible 2018-05-29 15:25:11 +01:00
Mike Jolley 89daaebbca
Merge pull request #20241 from woocommerce/update/update-routine
Break up update routine and allow it run to multuple times
2018-05-29 15:19:25 +01:00
Mike Jolley 511243a54a Encode array keys 2018-05-29 15:04:22 +01:00
Mike Jolley 45d6c55f2a selected logic, with added sanitize_title 2018-05-29 14:32:20 +01:00
Mike Jolley b3023bec7d
Merge pull request #20289 from woocommerce/pr/20272
Pr/20272
2018-05-29 11:20:45 +01:00
Mike Jolley 9637ada4ee Keep escape, pass link 2018-05-29 11:16:30 +01:00
Mike Jolley c9aadf19bd
Merge pull request #20282 from woocommerce/fix/20278
Product properties should not be accessed directly
2018-05-29 10:55:48 +01:00
Mike Jolley daad19fc6c
Merge pull request #20256 from jamesckemp/patch-11
Echo attribute label for "empty" default option
2018-05-29 10:42:26 +01:00
Mike Jolley 37762024e0
Merge pull request #20237 from woocommerce/fix/defend-cod-notices
get_canonical_package_rate_ids should check it has an array
2018-05-29 10:39:16 +01:00
Gerhard Potgieter e3a37f81ee Changes based on feedback, no need for sanitasion since wp_handle_upload alread checks 2018-05-29 07:37:25 +02:00
Rodrigo Primo 6a4eaa4de5 Check object before calling one of its methods
Check to see if `$product` is an instance of WC_Product before calling WC_Product::get_id() to protect against a fatal error.
2018-05-28 16:36:36 -03:00
Rodrigo Primo 5ed26df842 Product properties should not be accessed directly
Use WC_Product::get_id() instead of WC_Product::ID as product properties should not be accessed directly.

Fixes #20278
2018-05-28 16:32:36 -03:00
Remi Corson b64182162e remove wp_kses() and esc_html() 2018-05-28 12:29:26 +02:00
Gerhard Potgieter 4e40d79f84 Use wc_clean and not wp_unslash when cleaning the file path, strips out slashed on windows machines 2018-05-28 11:50:04 +02:00
Remi Corson 61b9461375 Add wp_kses() authorized tag 2018-05-28 11:44:05 +02:00
Remi Corson 4743dba7d0 Make sample tax rate URL clickable 2018-05-28 11:23:32 +02:00
Chris Montgomery 5c37551128 Fix infinite loop with importing tax rates (#20253). 2018-05-26 22:42:37 +00:00
James Kemp 0eeb7834cd
Echo attribute label 2018-05-26 13:10:09 +01:00
James Kemp 1c99022600
Echo attribute label for "empty" default option
The empty option for the default attribute value selectors was not echoed.
2018-05-26 12:59:40 +01:00
Ismail El Korchi 4b2b654749
Update wc_maybe_define_constant doc 2018-05-26 03:16:44 +00:00
boodaah 14f090f82e Add anchor tag example to email template preview 2018-05-25 14:41:20 -04:00
Mike Jolley e1ba7f4b93 Introduce is_paypal_supported_currency check in setup wizard 2018-05-25 17:28:56 +01:00
Mike Jolley 048b95e135 Correct code to run again 2018-05-25 16:36:07 +01:00
Mike Jolley 083c994732 Break up update routine and allow it run to multuple times 2018-05-25 14:18:19 +01:00
Mike Jolley 6690e54921
Merge pull request #20217 from woocommerce/fix/20182
Prevent shipping method instance save action running on non-instance screens
2018-05-25 13:06:04 +01:00
Mike Jolley 296de85c17
Merge pull request #20235 from woocommerce/fix/20224
add missing wp_unslash calls to product data meta box
2018-05-25 13:05:32 +01:00
Mike Jolley 40ac62eea9
Merge pull request #20236 from woocommerce/fix/20220
Fix webhook filtering URLs
2018-05-25 13:04:38 +01:00
Mike Jolley ad10e846ea get_canonical_package_rate_ids should check it has an array 2018-05-25 12:54:58 +01:00
Mike Jolley 58b9be29b9
Merge pull request #20191 from woocommerce/fix/20186
Product import from file on server
2018-05-25 12:29:27 +01:00
Mike Jolley c31cd4d962
Merge pull request #20234 from woocommerce/fix/20228
Check plugin properties exist when listening to auto_update_plugin hook
2018-05-25 12:29:17 +01:00
Mike Jolley f1bed0d97b
Merge pull request #20231 from woocommerce/fix/20227
Wrapper function to get full mysql version string with mariadb handling
2018-05-25 12:29:05 +01:00
Mike Jolley 34949d3971 Fix webhook filtering URLs 2018-05-25 12:21:31 +01:00
Mike Jolley 81b65f1783 add missing wp_unslash calls to product data meta box 2018-05-25 12:15:59 +01:00
Mike Jolley d0d87b5e39 Check plugin properties exist 2018-05-25 12:07:12 +01:00
Gerhard Potgieter 5b1180d81a Server files always need to be relative to ABSPATH, and use wc_clean as esc_url_raw will mess up file paths. 2018-05-25 12:57:01 +02:00
Khan M Rashedun-Naby 34360dff0a wc_create_new_customer logic simplified 2018-05-25 16:53:27 +06:00
Mike Jolley 786641e976
Merge pull request #20232 from rnaby/250518-161500-wc-template-functions-wc_logout_url
wc_logout_url refactored
2018-05-25 11:40:00 +01:00
Khan M Rashedun-Naby 49f76ebb5b wc_logout_url refactored 2018-05-25 16:34:06 +06:00
Mike Jolley 75f88041d7
Merge pull request #20197 from woocommerce/update/20183
"payment tokens" terminology
2018-05-25 11:33:40 +01:00
Mike Jolley b96c7f6192
Merge pull request #20200 from woocommerce/update/20184
Export legacy paypal meta data in exporter
2018-05-25 11:33:26 +01:00
Mike Jolley 717fd61a16
Merge pull request #20226 from rnaby/250518-104427-wc-template-functions-get_product_search_form
Removed get_product_search_form else
2018-05-25 11:29:07 +01:00
Mike Jolley 416a4785b2
Merge pull request #20230 from rnaby/250518-154433-wc-template-functions-wc_get_rating_html
wc_get_rating_html refactored
2018-05-25 11:28:27 +01:00
Mike Jolley fc24e2f440
Merge pull request #20214 from rnaby/240518-232027-wc-template-functions-woocommerce_pagination
woocommerce_pagination refactored
2018-05-25 11:23:36 +01:00
Mike Jolley 3cf7bfc328
Merge pull request #20213 from rnaby/240518-230624-wc-template-functions-wc_setup_product_data
wc_setup_product_data refactored
2018-05-25 11:22:23 +01:00
TheDramatist 29a6a7a494 wc_add_number_precision_deep logic simplified (#20211)
* wc_add_number_precision_deep logic simplified

* Early return
2018-05-25 11:18:49 +01:00
Mike Jolley 0bfd675238 Wrapper function to get full mysql version string with mariadb handling 2018-05-25 11:15:30 +01:00
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 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
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