Commit Graph

17050 Commits

Author SHA1 Message Date
Mike Jolley 83f46aca15
Merge pull request #21887 from hannahswain/patch-1
Update external/affiliate URL placeholder from http to https
2019-01-07 12:44:45 +00:00
Mike Jolley 05de936932
Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php
Removed unnecessary variable.
2019-01-07 12:43:40 +00:00
Mike Jolley 981ddcfe34
Merge pull request #22167 from Prospress/fix/22161
Apply email usage restriction comparison to entire string
2019-01-07 12:31:12 +00:00
Mike Jolley 71ab4c78ed
Merge pull request #22168 from woocommerce/fix/rest-api-orderby-slug
[REST API] Fixed orderby slug
2019-01-07 12:19:35 +00:00
Mike Jolley 63bd02022f
Merge pull request #22084 from Prospress/fix/22075
Remove the stock data type on low stock threshold input which can be empty
2019-01-07 11:41:17 +00:00
Mike Jolley 8ad3491b99 Add option to control if remove personal data bulk action is allowed 2019-01-07 11:22:29 +00:00
Mike Jolley 9245687f6a Merge remote-tracking branch 'origin/master' into enhancement/erasure-setting-22055 2019-01-07 11:07:12 +00:00
Claudiu Lodromanean 1612d2a230
Merge pull request #22074 from Prospress/fix/22068
ensure product parent exists before getting its image
2019-01-04 09:37:03 -08:00
Claudiu Lodromanean 99da8f4aa4
Merge pull request #22026 from Prospress/fix/21743
fix `0` value attribute permalink, property in REST api
2019-01-04 09:35:34 -08:00
Allen Snook 9efd543f73 Correct coding standard violations in pre-existing code 2019-01-04 08:39:57 -08:00
claudiulodro 5a005d9ee9 Product structured data tweak 2019-01-04 07:51:22 -08:00
Brent Shepherd 0593450ed3 Make webhooks scheduled actions unique
Fixes #22087
2019-01-04 14:27:08 +00:00
Brent Shepherd b924e36f11 Fix WC_Action_Queue::get_next() return value 2019-01-04 14:27:01 +00:00
Mike Jolley 502a25a2fa
Merge pull request #22096 from woocommerce/fix/formatted_address_upper
Use wc_strtoupper on formatted address
2019-01-04 13:04:08 +00:00
JeroenSormani f4775ccd90 Use shipping method instead of property through magic + doc return statements 2019-01-04 12:41:38 +00:00
Allen Snook 21441cc441 Restore non-cart notice printing opportunity during checkout 2019-01-03 15:52:45 -08:00
Mike Jolley 6e7e96c624 Check stock status before repopulating cart 2019-01-03 15:30:26 +00:00
Mike Jolley 6c9f9ea424 phpcs 2019-01-03 15:30:21 +00:00
Mike Jolley 58c3731030 Add special button style for connect button 2019-01-03 14:41:09 +00:00
claudiulodro 3c3894b676 Bump wc_version since 3.6 development has begun 2019-01-02 12:11:35 -08:00
Claudiu Lodromanean 89740f9583
Merge pull request #22204 from woocommerce/fix/22201
Restore empty schema support for register_rest_field
2019-01-02 12:03:41 -08:00
Claudiu Lodromanean 87a03b2331
Merge pull request #22189 from Prospress/fix/22186
Allow sale price to 23:59:59 on last sale date
2019-01-02 12:02:52 -08:00
Claudiu Lodromanean 34f472fdf2
Merge pull request #22185 from woocommerce/fix/21735
Don't wrap layered nav wp_json_encode string in quotes
2019-01-02 12:01:21 -08:00
Claudiu Lodromanean d1964d5cb5
Merge pull request #22183 from codemascot/fix/22182
Fix for issue #22182
2019-01-02 12:00:35 -08:00
Claudiu Lodromanean 2f82039869
Merge pull request #21938 from Prospress/fix/21935
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -08:00
Ron Rennick 3083f05a0c missed phpcs sniffs 2018-12-27 11:45:12 -04:00
Ron Rennick 9b200b213d convert newlines to/from \n on export/import 2018-12-26 15:30:40 -04:00
Ron Rennick c1cb73c00f phpcs sniff fixes in class-wc-product-csv-exporter.php 2018-12-26 14:54:46 -04:00
Ron Rennick 0e9494ba50 phpcs sniff fixes in class-wc-product-csv-importer.php 2018-12-26 11:22:52 -04:00
Rodrigo Primo ff74ecec86 Fix orders list in the admin
WP 5.0.2, which was released yesterday, sets `$query_vars['post_status']` to an empty string instead of leaving it unset (https://core.trac.wordpress.org/ticket/45719 and https://core.trac.wordpress.org/changeset/44185). This change broke the WC orders list in the admin when listing orders of all post statuses as we were checking if `$query_vars['post_status']` was not set to add all order statuses to this variable (125eaaf241/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L799)).

To workaround this problem, this commit changes the check to verify if `$query_vars['post_status']` is empty instead of verifying if it is not set.
2018-12-20 09:56:02 -02:00
Rodrigo Primo 948a1dc300 Fix PHPCS violations automatically using PHPCBF 2018-12-20 09:48:14 -02:00
Ron Rennick 292c5c5dcc strip slashes from tax classes on save 2018-12-19 15:22:04 -04:00
Rodrigo Primo 125eaaf241 Merge branch 'master' of github.com:woocommerce/woocommerce 2018-12-19 13:31:34 -02:00
Rodrigo Primo 941217719e phpcs fixes using phpcbf 2018-12-19 13:31:11 -02:00
Rodrigo Primo cb0c23d6ab
Merge pull request #22244 from faisal-alvi/fix-22234
Fix-22234
2018-12-19 12:42:48 -02:00
Rodrigo Primo 0cb992925d phpcs fix using phpcbf 2018-12-19 12:40:02 -02:00
Faisal Alvi cbafb8e006 Fix-22234 2018-12-17 15:01:05 +05:30
Ron Rennick 771a615328 add out of stock criteria to tax_query array instead of replacing it 2018-12-14 14:52:26 -04:00
Ron Rennick 32ae40ffb0 phpcs sniff fixes for class-wc-widget-products.php 2018-12-14 14:50:58 -04:00
Gerhard 4daafd28e4 v2 API should also use wc_get_webhook_statuses for the enum in the schema status 2018-12-14 08:08:56 +02:00
Ron Rennick aba43ae6de phpcs sniff fixes for class-wc-rest-products-v2-controller.php 2018-12-13 16:04:53 -04:00
Gerhard ac9b588147 Remove status check from schema, do checks when updating. Define status schema enum using the wc_get_webhook_statuses method. 2018-12-13 13:05:50 +02:00
Gerhard 189f346c2e Add unit tests for wc_is_webhook_valid_status 2018-12-12 10:33:52 +02:00
Gerhard 1ac267992d Add new wc_is_webhook_valid_status and use that for the schema check in the API. 2018-12-12 10:21:59 +02:00
Gerhard 5d22d42c9b PHPCS fixes 2018-12-12 10:05:03 +02:00
Gerhard 38391f7bbf Update WC_REST_Controller to apply WP 5.0 fix as per https://core.trac.wordpress.org/attachment/ticket/45220/45220.2.diff 2018-12-12 10:03:22 +02:00
Claudiu Lodromanean c4ae48597c
Merge pull request #21904 from Prospress/fix/21196
allow limited html in `woocommerce_rating_filter_count` filter
2018-12-11 11:18:19 -08:00
Claudiu Lodromanean c3334302bd
Merge pull request #22108 from woocommerce/fix/meta-queries-REST-API
Fixed support for multiple query parameters translated to meta queries via REST API requests
2018-12-11 11:12:56 -08:00
Claudiu Lodromanean 6e457799b3
Merge pull request #21943 from woocommerce/fix/21516
Match array keys on lowercase keys before calling set_props
2018-12-11 11:12:22 -08:00
Claudiu Lodromanean b70fed6868
Merge pull request #21669 from woocommerce/fix/helper-not-able-to-detect-local-woo-plugin
Add File Headers filter at 'plugins_loaded' hook so that WooCommerce Helper can detect all locally installed Woo plugins
2018-12-11 11:08:49 -08:00
Claudiu Lodromanean f6c3766cf0
Merge pull request #22139 from aslamshekh/fixed-wordpress-standard-1
Fixed Wordpress standard as per given suggestion on #22122
2018-12-10 14:12:07 -08:00
Claudiu Lodromanean d1e71994dc
Merge pull request #22170 from faisal-alvi/master
`abstract-wc-widget.php` - coding standard fixes
2018-12-10 14:06:38 -08:00
Ron Rennick b6c614c2af allow sale price to 23:59:59 on last sale date 2018-12-10 10:37:13 -06:00
Ron Rennick b8d635a29c phpcs sniffs in abstract-wc-product.php 2018-12-10 10:34:12 -06:00
Gerhard 7074b0933c Don't wrap wp_json_encode string in quotes, it already does it for us. 2018-12-10 10:14:56 +02:00
Khan M Rashedun-Naby 50bb510c93 Fix for issue #22182 2018-12-10 00:47:49 +06:00
Ron Rennick 52f13f8708 fix phpcs sniffs in class-wc-widget-rating-filter.php 2018-12-07 09:27:56 -06:00
Rodrigo Primo 0b413351a2
Merge pull request #22031 from Prospress/fix/22027
fix PHP 5.2 sniffs in class-wc-install.php
2018-12-07 11:43:46 -02:00
Faisal Alvi 8dbb795610 abs-wc-widget-coding-stds
Few coding standard fixes in the file abstract-wc-widget.php
2018-12-07 18:57:03 +05:30
Rodrigo Primo 5da1b72464
Merge pull request #21913 from Prospress/fix/21909
Capitalize dashboard widget titles
2018-12-07 11:24:25 -02:00
Claudio Sanches 7cbcaf04e8
Merge pull request #22121 from woocommerce/fix/update-settings-controller
Fix updating settings via the API
2018-12-06 16:49:44 -02:00
Ron Rennick 2b74017200 apply usage restriction compare to entire string 2018-12-06 12:32:04 -06:00
Ron Rennick 8c852780ea phpcs sniff fixes for class-wc-cart.php 2018-12-06 12:31:21 -06:00
Claudio Sanches fb35324c4f [REST API] Fixed orderby slug 2018-12-06 16:17:58 -02:00
Rodrigo Primo 99b633d1e5
Merge pull request #22028 from woocommerce/phpcs-wp-db
Update WPCS sniff names
2018-12-06 15:56:12 -02:00
Peter Fabian dc39d265fd Merge branch 'master' into fix/update-settings-controller 2018-12-06 16:28:46 +01:00
Gustavo Bordoni 31aded7091
Remove one more PHP 52 incomaptible \ 2018-12-06 09:48:18 -05:00
Gustavo Bordoni 98d6a715a2
PHP 5.2 Compatibility 2018-12-06 09:45:09 -05:00
Rodrigo Primo 164758a5f0
Merge pull request #22110 from stromhalm/patch-1
Properly close option tag in customer search
2018-12-06 12:18:54 -02:00
Rodrigo Primo e7296aec03
Merge pull request #22081 from rvdsteege/patch-1
Fix incorrect return type documentation for product factory `get_product()`.
2018-12-06 12:09:52 -02:00
Aslam Shekh 0611204238 Fixed Wordpress standard as per given suggestion on here:- https://github.com/woocommerce/woocommerce/pull/22122#issuecomment-444207375 2018-12-05 08:12:57 -08:00
Rodrigo Primo a91bc5b1ec phpcs fixes using phpcbf 2018-12-04 16:04:24 -02:00
Kathy Darling eadef501af need to pass a null parameter in second place where woocommerce_add_to_cart_redirect filter appears to avoid errors. 2018-12-04 11:58:54 -06:00
Kathy Darling f9fecefb5f Add product object and add to cart success status as params for woocommerce_add_to_cart_redirect filter 2018-12-04 11:58:14 -06:00
Rodrigo Primo 24fd6f89c6 Merge branch 'master' into phpcs-wp-db 2018-12-04 15:39:19 -02:00
Justin Shreve 379f257e3d Load the correct class for settings options 2018-12-04 11:20:34 -05:00
Adrian Jagusch 8732d200e1
Properly close option tag in customer search 2018-12-03 15:27:45 +01:00
Peter Fabian 9547895863 Don't remove existing meta queries via REST API. 2018-12-03 11:52:36 +01:00
Claudio Sanches a0e77eb40c Use wc_strtoupper on formatted address 2018-11-30 15:59:28 -02:00
claudiulodro 5d0d275bec Remove duplicate sanitizing 2018-11-30 08:49:43 -08:00
claudiulodro 2bccd4899a Revise to make code cleaner 2018-11-30 08:49:43 -08:00
claudiulodro d1533261f5 Extra sanitizing around payment_method_title 2018-11-30 08:49:43 -08:00
Ron Rennick 267b5ed569 only include order erasure bulk action if erasure is enabled in settings 2018-11-29 16:20:56 -04:00
Ron Rennick 59c1b2f669 phpcs sniff fixes class-wc-admin-list-table-orders.php 2018-11-29 16:16:51 -04:00
Ron Rennick b7f87c8cd2 Remove the stock data type on low stock threshhold input which can be blank 2018-11-29 14:58:51 -04:00
Reüel van der Steege b433219f71
Fix incorrect return type documentation for product factory `get_product()`.
This method returns `false` if the product cannot be loaded, not `null`.
2018-11-29 15:25:24 +01:00
Claudiu Lodromanean 7049cd28e9
Merge pull request #22057 from leewillis77/status-report-plugin-fix
"Active plugins" fix for status report
2018-11-28 11:09:26 -08:00
Ron Rennick 548fc72718 ensure product parent exists before getting its image 2018-11-28 14:41:12 -04:00
Ron Rennick b0b2320559 fix phpcs sniffs in abstract-wc-product.php 2018-11-28 14:34:24 -04:00
Ron Rennick 99a48cc0a0 don't html escape sku used in product lookup 2018-11-28 13:47:27 -04:00
Ron Rennick ddcfb50d4b fix phpcs in class-wc-product-csv-importer.php 2018-11-28 13:45:33 -04:00
Claudiu Lodromanean fd195cfbf6
Merge pull request #21940 from woocommerce/fix/21937
Make wc_download_log FK use table prefix
2018-11-28 07:48:05 -08:00
claudiulodro d5f7afbff3 Simplify contraint 2018-11-27 11:08:47 -08:00
Claudiu Lodromanean 2e157427fc
Merge pull request #21970 from woocommerce/feature/twenty-nineteen
Enhanced compatibility with Twenty Nineteen
2018-11-27 09:13:14 -08:00
Claudiu Lodromanean ebd6ecb95f
Merge pull request #22009 from woocommerce/php73-wp-nightly
Prepare WooCommerce for PHP 7.3
2018-11-27 09:12:39 -08:00
Claudiu Lodromanean d8119dd1e9
Merge pull request #21865 from Prospress/fix/21857
consistent logic on `woocommerce_formatted_address_force_country_display` filter name
2018-11-27 09:12:04 -08:00
Claudiu Lodromanean f7680ffa36
Merge pull request #22013 from woocommerce/fix/21789
Fixed REST API authentication when using 3rd party auth methods
2018-11-27 09:11:37 -08:00
Claudiu Lodromanean 1f00fa9b02
Merge pull request #22050 from woocommerce/fix/21796-2
Add hold stock minutes check to order pay shortcode also
2018-11-27 09:11:19 -08:00
Lee Willis 6f24d5b283 Coding standard fix 2018-11-27 12:05:10 +00:00
Lee Willis 0079312e1c Remove erroneous "break" 2018-11-27 11:20:27 +00:00