Commit Graph

17255 Commits

Author SHA1 Message Date
Mike Jolley 6ccf385f8b
Merge pull request #22005 from woocommerce/add/21992
Add woocommerce_gallery_image_html_attachment_image_params filter
2019-01-07 13:05:53 +00:00
Mike Jolley 9e1f1f2255
Merge pull request #22160 from bordoni/lib-action-scheduler-php-52
Lib Action Scheduler PHP 5.2 Compatible
2019-01-07 12:56:10 +00:00
Mike Jolley 241cf4dece
Merge pull request #21442 from danielbitzer/master
Add coupon object param to get coupon data filter
2019-01-07 12:53:04 +00:00
Mike Jolley 4d0306b977
Merge pull request #21402 from xlplugins/master
Added new filter to modify order status during orders using cheque as a gateway.
2019-01-07 12:50:35 +00:00
Mike Jolley 0da7f9f06f
Merge pull request #21896 from jespervnielsen/patch-3
Add dependency to WC_Product_CSV_Importer_Controller
2019-01-07 12:48:45 +00:00
Mike Jolley fb9847bcca
Merge pull request #21853 from rellect/incorrect_call
Remove non existent parameter
2019-01-07 12:47:40 +00:00
Mike Jolley 6dba8f3b05
Merge pull request #21498 from liquidweb/feature/sanitize-order-id-tests
Add tests for wc_sanitize_order_id()
2019-01-07 12:46:11 +00:00
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
Miguel Pinto 0537145113
Add filter to hash location to change hash format
Ability to define a cache version only based on country, and not a region, city, etc.
Improve website performance by decreasing the number of different versions.
In my case, i was able to define v=[country_code] which is more URL friendly.
2019-01-06 13:58:12 +13: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
Ron Rennick 0be3c5c690 add gutenberg block preprocessor filter to shop page content 2019-01-03 16:22:55 -04: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 1a02e9f64a update variation guid with the id after creation 2019-01-02 14:26:08 -04:00
Ron Rennick 89855b749d Only include the network orders widget on the main site dashboard 2019-01-01 16:15:28 -04:00
Ron Rennick 4b44156882 phpcs sniff fixes excluding DB queries 2019-01-01 16:14:02 -04:00
ICT beheer 8eb9393e62 Support for Dutch postcodes 2018-12-30 20:02:59 +01: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
Alessandro Morelli a4c5a34e99 Add a new integration hook to allow removal of cart items when the cart is loaded from the session without triggering preset notices. 2018-12-22 10:25:37 +01:00
John Rom 1055d79301 Add a filter, woocommerce_current_user_can_edit_customer_meta_fields, to bypass manage_woocommerce when editing customer meta fields 2018-12-20 11:06:33 -05: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
Sabuj Kundu f329cb2d75
Add $orderby and $order params to filter woocommerce_get_catalog_ordering_args
Filter woocommerce_get_catalog_ordering_args  has only one single argument $args, anyone filter this needs to detect the $orderby and $order value again which is already coded in the method where this filter returns. I hope adding two extra param $orderby and $order will make developer's life easier to hook this filter.
2018-12-18 11:07:18 +06:00
Diego 5970c9d0f5 Added new filter "woocommerce_get_min_max_price_meta_query" 2018-12-17 22:42:35 +00: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
Ron Rennick 50b36e549f phpcsw sniff fixes for class-wc-product-variable-data-store-cpt.php 2018-12-13 14:35:24 -04:00
Ron Rennick 36c220f0d6 fix merge conflicts, add missing wpdb::prepare 2018-12-13 14:21:25 -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 522f992bfe Add new pre query filter to WC_Product_Data_Store_CPT::search_products()
This commits adds a filter to WC_Product_Data_Store_CPT::search_products() to let third-party code define custom ways to search for products.
2018-12-06 16:08:10 -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
Ron Rennick c1ad273a03 replace all remaining str_replace( 'pa_', ... with wc_attribute_taxonomy_name_raw(...) 2018-12-03 11:32:33 -04:00
Ron Rennick dc0aeb0553 phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-rest-products-v2-controller.php 2018-12-03 11:32:19 -04:00
Ron Rennick 33f25f83b5 phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for class-wc-admin-importers.php 2018-12-03 11:31:59 -04:00
Ron Rennick e8ec6df3ff phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for abstract-wc-widget.php 2018-12-03 11:31:47 -04:00
Ron Rennick e95842228a phpcs sniff fixes wc-attribute-functions.php, introduct `wc_attribute_taxonomy_name_raw()` 2018-12-03 11:30:26 -04: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
Ron Rennick f9b2ff170f add missing wpdb::prepare calls 2018-11-30 15:52:20 -04: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
Ron Rennick ef23f0bb8f fix phpcs passing array arguments to wpdb::prepare 2018-11-29 14:52:52 -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
Beka Rice e64c5e1077 Send webhooks for refund creation 2018-11-28 13:32:36 -05: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
Ron Rennick 9e520af93e populate default variation attributes when it is the first variation 2018-11-28 11:40:35 -04:00
Ron Rennick 042c61cc5d fix phpcs sniffs in class-wc-product-variable-data-store-cpt.php 2018-11-28 11:22:07 -04:00
Ron Rennick 3e014ffe62 add is_array check to catalog ordering orderby 2018-11-28 08:51:05 -04:00
Ron Rennick 64621c5b36 fix phpcs sniffs in class-wc-query.php 2018-11-28 08:50:25 -04: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
claudiulodro 13371c7e8b Check product exists before getting title 2018-11-26 11:16:58 -08:00
claudiulodro 695d3eb433 Add hold stock minutes check to order pay shortcode also 2018-11-26 11:10:07 -08:00
Ron Rennick e39a86d4ee fix PHP 5.2 sniffs in class-wc-install.php 2018-11-23 14:49:08 -04:00
Rodrigo Primo a9994feeea Delete wc_layered_nav_counts_* transients whenever a product is updated
This commit moves the code to delete wc_layered_nav_counts_* transients from WC_Product_Data_Store_CPT::update_attributes() to wc_delete_product_transients(). This way those transients will be deleted whenever a product is updated and not only when the product attributes are updated. This is needed to make sure that the "Filter Products by Attribute" displays the correct list of attributes when a product changes from out of stock to in stock or vice versa via the "Quick Edit" interface or the WC API.
2018-11-23 15:30:38 -02:00
Rodrigo Primo 8d5b428a29 Update WPCS sniff name from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared
The name of the sniff changed in WPCS 1.0
2018-11-23 15:29:53 -02:00
Rodrigo Primo 6ec2b26972 Update WordPress.DB.PreparedSQL.NotPrepared sniff name
The latest version of WPCS that was added to WC last week, changed the name of some sniffs. This commit updates the name of one of those sniffs from WordPress.WP.PreparedSQL.NotPrepared to WordPress.DB.PreparedSQL.NotPrepared.
2018-11-23 15:10:52 -02:00
Ron Rennick 45370d3e61 fix `0` value attribute permalink calculation, property population in REST api 2018-11-23 11:13:25 -04:00
Rodrigo Primo 57f44798cb Fix phpcs violations automatically using phpcbf 2018-11-23 12:57:51 -02:00
Rodrigo Primo eb76ac9f65 Fix phpcs violations automatically using phpcbf 2018-11-23 12:37:23 -02:00
Rodrigo Primo 242641e931
Merge pull request #21987 from webdados/patch-2
Fix Angolan "State" label to "Province"
2018-11-23 11:21:08 -02:00
Rodrigo Primo 05bae41b24 Fix phpcs violations automatically using phpcbf 2018-11-23 11:17:43 -02:00
Rodrigo Primo 76b7f5b381
Merge pull request #21995 from woocommerce/fix/21790
When only selling to one country set customer location to that country
2018-11-22 12:06:12 -02:00
Rodrigo Primo b3bfb77edb fix phpcs error 2018-11-22 10:58:55 -02:00
Rodrigo Primo 12bac0f2b6 Merge branch 'master' into fix/21790 2018-11-22 10:57:47 -02:00
Rodrigo Primo a096e2729a
Merge pull request #21936 from woocommerce/fix/21878
Use wp_kses_post for sanitizing product names instead of esc_html
2018-11-22 10:54:57 -02:00
Claudiu Lodromanean dd2ef82dc8
Merge pull request #21797 from jdmadison/fix-21796
Add woocommerce_hold_stock_minutes check back to  calculation
2018-11-21 13:11:20 -08:00
Claudiu Lodromanean b85598a576
Merge pull request #22001 from woocommerce/fix/21792
Fix missing lost password notices
2018-11-21 13:06:39 -08:00
Claudiu Lodromanean e0cf359378
Merge pull request #22000 from woocommerce/fix/21990
Fix arialabelledby attribute for quantity selectors
2018-11-21 13:02:53 -08:00
Claudiu Lodromanean 152b609c35
Merge pull request #21981 from woocommerce/fix/21422
Log file timestamp should be UTC
2018-11-21 12:59:46 -08:00
Claudio Sanches 6a21ec401c Fixed coding standards 2018-11-21 16:12:35 -02:00
Claudio Sanches fa8ec35006 Fixed REST API authentication when using 3rd party auth methods
Closes #21789
2018-11-21 16:10:36 -02:00
John Blackbourn 71def7b5f0 Revert "Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989."
This reverts commit b0b36ae4b8.
2018-11-21 18:50:59 +01:00
Rodrigo Primo 171e90815b
Merge pull request #21985 from webdados/patch-1
Fix locale for São Tomé and Príncipe
2018-11-21 15:25:08 -02:00
Rodrigo Primo c349136273 Merge branch 'master' into php73-wp-nightly 2018-11-21 11:15:48 -02:00
Rodrigo Primo 2c8d006c37 Update PHPCompatibility sniff names
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo bfa9424d17 Update WPCS sniff name
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo e467737653 phpcs fixes 2018-11-21 11:06:42 -02:00
Gerhard 06d7d50f9d Include main_image variable in the woocommerce_gallery_image_html_attachment_image_params filter. 2018-11-21 13:52:55 +02:00
Gerhard 7e4e0de090 PHPCS fixes 2018-11-21 13:48:35 +02:00
Gerhard 9eb31f5d14 Add woocommerce_gallery_image_html_attachment_image_params filter so you can modify the params passed to wp_get_attachment_image for thumbnails. 2018-11-21 13:47:24 +02:00
Gerhard f58fcf6b3b Add woocommerce_before_lost_password_form and woocommerce_after_lost_password_form actions and hook into woocommerce_output_all_notices 2018-11-21 10:32:28 +02:00
Gerhard 8d6d95935a Populare arealabelledby attribute by actually passing the product_name in the $args. 2018-11-21 09:49:38 +02:00
claudiulodro ebea6b96be When only selling to one country set customer location to that country 2018-11-20 12:07:57 -08:00
Claudiu Lodromanean ac80e6683e
Merge pull request #21947 from franticpsyx/issue-21845
Refine new order-again logic
2018-11-20 10:53:40 -08:00
Rodrigo Primo a9e532022a Replace `continue` inside `switch` statement with `break`
PHP 7.3 will generate a warning when `continue` is used inside a `switch` statement. For more information see the relevant section in https://make.wordpress.org/core/2018/10/15/wordpress-and-php-7-3/
2018-11-20 16:24:11 -02:00
John Blackbourn b0b36ae4b8 Add support for clearing a session and associated cart contents when switching between accounts using the User Switching plugin. See #21989. 2018-11-20 18:58:42 +01:00
John Blackbourn 179aa0853d Add a public method for forgetting a session without clearing it. 2018-11-20 18:58:14 +01:00
Rodrigo Primo d29ead0e63 Make Emogrifier regular expressions compatibile with PCRE2
In preparation for PHP 7.3, this commit makes the regular expressions used in Emogrifier compatible with PCRE2. It was necessary to escape hyphens used in a few regular expressions. Since the changes were simple and I'm not familiar enough with Emogrifier, I opted to backport the changes that they made in preparation for PHP 7.3 (https://github.com/MyIntervals/emogrifier/pull/588 and https://github.com/MyIntervals/emogrifier/issues/587) instead of updating the library to the yet to be released version 2.1.0.

This change removes the following warning when running WC unit tests using PHP 7.3:

PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 39 in includes/libraries/class-emogrifier.php on line 1504

For more information about the PCRE2 change in PHP 7.3 see the section "PCRE to PCRE2 migration" in the link https://ayesh.me/Upgrade-PHP-7.3
2018-11-20 15:54:54 -02:00
Marco Almeida 276d6f3526
Fix Angolan "State" label to "Province"
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Jeremy Pry 7cc3d098ea
Use proper return value for wc_customer_has_capability() docblock 2018-11-20 08:50:46 -05:00
Marco Almeida b19941dae4
Fix locale for São Tomé and Príncipe
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Marco Almeida 9282c1a619
Remove postal code for Angola
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Gerhard 47226ae2bf PHPCS fixes 2018-11-20 12:54:59 +02:00
Gerhard c05c17d947 Timestamp should be in UTC since we use date( 'c' ) for outputting the date/time in the file. 2018-11-20 12:46:52 +02:00
Claudiu Lodromanean 0cf264dc72
Merge pull request #21949 from franticpsyx/issue-21948
Parse query using '$wpdb->prepare' before querying
2018-11-19 13:13:53 -08:00
Claudiu Lodromanean b585553ee9
Merge pull request #21864 from Prospress/fix/21457
allow export and display of attribute labels containing html special characters
2018-11-19 12:20:41 -08:00
Claudiu Lodromanean 0ddfbbe1ac
Merge pull request #21954 from willgorham/fix/21793
Fix hardcoded db table name [Fixes #21793]
2018-11-19 12:10:55 -08:00
Claudiu Lodromanean 4d93bf60e1
Merge pull request #21930 from woocommerce/update/21915
Add WP 5.0 checks to Wootenberg notices
2018-11-19 11:47:43 -08:00
Claudio Sanches ff762609e9 Fix how generate pages 2018-11-19 14:25:06 -02:00
Tiago Noronha 89eec8652f Add support for Twenty Nineteen color scheme option 2018-11-19 15:02:26 +00:00
Gerhard dbeabd5b09 Add woocommerce_valid_location_types filter 2018-11-19 13:04:58 +02:00
sebastianpisula 9b5e7ae2c6
New params for woocommerce_shipping_zone_*_methods_table actions
Add $zone param to woocommerce_shipping_zone_before_methods_table and woocommerce_shipping_zone_after_methods_table action
2018-11-18 12:59:54 +01:00
Karolína Vyskočilová 45d2ddc5e8 phpcbf 2018-11-18 10:58:58 +01:00
Will Gorham 4b1dd35dda Revert "phpcs" (bc4010) - incorrect phpcs fixes
This reverts commit bc4010cfc1.
2018-11-16 15:20:57 -05:00
Will Gorham b53fe55299 More phpcs 2018-11-16 14:47:31 -05:00
Will Gorham bc4010cfc1 phpcs 2018-11-16 14:15:18 -05:00
Will Gorham 20526cba08 Fix hardcoded db table name 2018-11-16 14:15:04 -05:00
Valerie 94275039cd OBW: Fix ShipStation plugin info so install works 2018-11-16 14:06:58 -05:00
Tiago Noronha 4e01bf18dd Twenty Nineteen basic styling 2018-11-16 16:38:05 +00:00
Tiago Noronha 3168f13d9d Skeleton for Twenty Nineteen integration 2018-11-16 16:38:05 +00:00
Manos Psychogyiopoulos 60b84c09aa Parse query using '$wpdb->prepare' before querying 2018-11-16 16:11:31 +02:00
Manos Psychogyiopoulos 059d803484 Rename 'woocommerce_add_cart_item' to 'woocommerce_add_order_again_cart_item' 2018-11-16 15:27:30 +02:00
Manos Psychogyiopoulos 520a7e1a27 Pass order-again items to 'woocommerce_ordered_again' action 2018-11-16 15:25:35 +02:00
Manos Psychogyiopoulos c44809422b Pass order-again cart contents to 'woocommerce_ordered_again' action 2018-11-16 15:23:08 +02:00
Gerhard b071855632 Some PHPCS fixes 2018-11-16 12:17:33 +02:00
Gerhard 3943ec6395 Convert array keys to lower case before comparing keys to exclude. 2018-11-16 12:13:51 +02:00
Gerhard f7f7eebc1c Fix PHPCS issues 2018-11-16 08:29:13 +02:00
Gerhard 92bf56cde0 Add wc_update_352_drop_download_log_fk to the DB update routine. 2018-11-16 08:27:06 +02:00
Gerhard 92e9f2811b Make the wc_download_log FK use table prefix for cases where multiple single install tables are used in the same DB. 2018-11-16 08:18:25 +02:00
Ron Rennick 900c150569 Introduce `unescape_data` replacing `unescape_negative_number` for consistency with `escape_data` for strings in a CSV context 2018-11-15 15:49:39 -04:00
Ron Rennick 9c3fbc304e only prepend CSV content triggers with a ' on export 2018-11-15 15:49:25 -04:00
claudiulodro d09e9eb95c Use wp_kses_post for sanitizing product names instead of esc_html 2018-11-15 11:42:22 -08:00
Claudiu Lodromanean 8f145c70d7
Merge pull request #21934 from Prospress/fix/21931
use lower case for Croatian Kuna symbol
2018-11-15 10:51:22 -08:00
claudiulodro 180ead91e4 Update notice wording for wp 5.0 2018-11-15 10:19:51 -08:00
Claudiu Lodromanean f13c62c5ea
Merge pull request #21928 from woocommerce/fix/21926
Initialise $changes before usage.
2018-11-15 10:06:38 -08:00
Claudiu Lodromanean 0f72b5b6b1
Merge pull request #21923 from woocommerce/add/db-upgrade-tools
Update database tools option
2018-11-15 10:02:14 -08:00
Ron Rennick c911d90614 use lower case for Croatian Kuna symbol 2018-11-15 13:36:36 -04:00
Claudiu Lodromanean 314088acad
Merge pull request #21836 from Prospress/fix/21775
use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name
2018-11-15 09:13:14 -08:00
Claudiu Lodromanean 9fab802ff3
Merge pull request #21706 from nishitlangaliya/issue-21657
fix: Various 'Table does not exist' in WooCommerce status
2018-11-15 09:12:51 -08:00
Gerhard f2230da7d2 Use get_bloginfo( 'version' ) instead of wp_version global 2018-11-15 15:27:58 +02:00
Gerhard 341c0a8277 Add wp 5.0 checks to wootenberg notice checks. 2018-11-15 15:26:19 +02:00
Gerhard a3f3b282ac Initialise $changes before usage. 2018-11-15 14:36:56 +02:00
Gerhard fae1e1cce1 Make links in order notes clickable. 2018-11-15 14:27:26 +02:00
Gerhard 6a2b511731 Change wording to update instead of upgrade. 2018-11-15 12:10:17 +02:00
Gerhard 051fb5be36 Add a Upgrade database option to the tools tab. If clicked it will do a forced DB upgrade. 2018-11-15 12:03:12 +02:00
Gerhard 77309a86c3 When dynamic choosing API class, the comparison should be !== as the lastest version has no v3 in the class name. 2018-11-15 11:15:42 +02:00
Claudiu Lodromanean c3c84d2573
Merge pull request #21849 from woocommerce/fix/21832
Pay pending order, do not check stock when not managing stock
2018-11-14 14:07:04 -05:00
Claudiu Lodromanean 81be4f4795
Merge pull request #21738 from Prospress/issue_21736
Add SSL check to dashboard SSL notice
2018-11-14 12:51:50 -05:00
Claudiu Lodromanean 32afd82cfa
Merge pull request #21838 from woocommerce/update/preview
Reintroduce Preview button on products
2018-11-14 12:38:29 -05:00
Ron Rennick d0672b68c6 Capitalize dashboard widget titles 2018-11-14 13:34:15 -04:00
Ron Rennick 8e7715088e allow limited html in `woocommerce_rating_filter_count` filter 2018-11-13 11:33:44 -04:00
Jesper V Nielsen a09ddb99dc
Add dependency to WC_Product_CSV_Importer_Controller
When using the class WC_Product_CSV_Importer it gives fatal error, when using outsite of controller context, after "WC_Product_CSV_Importer_Controller" is introduced in this class.

This fixes it, and makes sure the external class exists, and is loaded.
2018-11-13 10:18:05 +01:00
Hannah Swain 1e142836b6
Update html-product-data-general.php
Changed external/affiliate product URL field's placeholder from http:// to https:// to reflect web preference for https
2018-11-12 13:56:00 +01:00
Joshua Flowers 2a76f0c19d Add WC_Admin_Taxonomies instance method 2018-11-12 11:30:09 +08:00
Kanishk ebd08e72b3 Added action on '9' priority 2018-11-10 02:12:09 +05:30
Ron Rennick 5b486a1e2f allow export and display of attribute labels containing html special characters 2018-11-09 09:17:18 -04:00
Ron Rennick 91ddf1f7c1 make logic consistent with `woocommerce_formatted_address_force_country_display` filter name 2018-11-08 16:35:57 -04:00
Claudiu Lodromanean f39b006264
Merge pull request #21856 from woocommerce/fix/21763
Apply field priority sorting on additional filters
2018-11-08 10:08:14 -05:00
Refael Iliaguyev 127f1cb276 Use WC() instead wc() for consistency 2018-11-08 12:59:07 +02:00
Andrew Benbow 163795b2ab
Add filter to save_payment_method_checkbox
Allow the save payment method checkbox to be removed based on payment gateway settings.
2018-11-08 09:15:18 +00:00
Gerhard 879139d81e Apply priority filtering on additional filters to accomodate pages like my account edit address. 2018-11-07 14:16:05 -05:00
Refael Iliaguyev e5a8df36e3 Remove non existent parameter 2018-11-07 17:16:57 +02:00
Refael Iliaguyev d8648f8aa7 Use correct return types 2018-11-07 16:49:41 +02:00
Gerhard aabae5d21f On form-pay, do not check for stock if not managing stock or allowing backorders. 2018-11-07 08:54:41 -05:00
Claudiu Lodromanean 452e8bc065
Merge pull request #21831 from jvanderveen/master
Fix for: WooCommerce Tax Rates (CSV) import does not work when entered path to file #21826
2018-11-06 16:08:54 -05:00
Kanishk c7fc4a9521 Refactored code to add filters on plugins_loaded 2018-11-07 02:32:57 +05:30
Claudiu Lodromanean f4cd63963e
Merge pull request #21821 from woocommerce/fix/21798
Display notices in order pay page.
2018-11-06 16:00:13 -05:00
Claudiu Lodromanean cae710c294
Merge pull request #21810 from ghettifish/master
added an error for variation using variation for parent in import and…
2018-11-06 15:56:27 -05:00
Claudiu Lodromanean 5fc9879e1c
Merge pull request #21801 from woocommerce/fix/priority
Check priority index before comparing
2018-11-06 15:55:01 -05:00
claudiulodro 0488bcd324 fix typo 2018-11-06 15:53:11 -05:00
Claudiu Lodromanean 900d3bad93
Merge pull request #21778 from woocommerce/fix/21426
Make get_on_sale_products not include non published parent results
2018-11-06 15:50:31 -05:00
Ron Rennick e3f00a6fbd use multisite blog prefix in `fk_wc_download_log_permission_id` constraint name 2018-11-06 16:43:46 -04:00
claudiulodro 510d3a756f Reintroduce Preview button on products 2018-11-06 15:28:23 -05:00
Kanishk b5b60c93b7 Merge branch 'master' into fix/helper-not-able-to-detect-local-woo-plugin 2018-11-07 01:46:31 +05:30
jvanderveen c205cab470
Update class-wc-tax-rate-importer.php 2018-11-06 15:01:44 +01:00
Nicolas Bovee b7ef951ac0 Revised error message and set is_type method on . 2018-11-05 23:19:10 -07:00
Claudio Sanches c9d62e506a Use hook instead 2018-11-05 18:40:00 -02:00
Claudio Sanches 0da8f23253 Display notices in order pay page.
Closes #21798
2018-11-05 18:35:23 -02:00