Commit Graph

29564 Commits

Author SHA1 Message Date
Mike Jolley 14149e4d54 phpcs 2019-02-18 13:41:06 +00:00
Mike Jolley d787c34206 get_webhooks_ids escaping 2019-02-18 13:34:13 +00:00
Mike Jolley 3a4ef0a1d8 Avoid getting all webhook ids 2019-02-18 13:19:12 +00:00
Mike Jolley d0438264ff Add limit to wc_load_webhooks 2019-02-18 13:15:32 +00:00
Mike Jolley 0c53145f2b Removed limit option from get_webhooks_ids - since transient stores all ids anyway, this logic makes more sense elsewhere 2019-02-18 13:13:59 +00:00
Mike Jolley 30db8a8d9c version comment 2019-02-18 13:07:57 +00:00
Mike Jolley 1d46294ee8 Update versions 2019-02-18 13:07:04 +00:00
Mike Jolley a662934355 phpcs 2019-02-18 12:53:59 +00:00
Mike Jolley d2682170fd Set woocommerce_load_webhooks_limit to no limit 2019-02-18 12:49:07 +00:00
Brent Shepherd 2ed2572afe Clear webhook transients when status changes
Background discussion: https://github.com/woocommerce/woocommerce/pull/21427#discussion_r246881785
2019-01-18 14:30:35 +10:00
Brent Shepherd 28ca9f1ec4 Remove unused $wpdb 2019-01-18 14:30:35 +10:00
Brent Shepherd 739af008c6 Fix test_wc_load_webhooks_status_and_limit()
As the status is being explicitly passed to wc_load_webhooks(), it
will load webhooks with that status, not just active.
2019-01-18 14:30:35 +10:00
Brent Shepherd ed55a3976a Test against $wp_filter instead of has_filter()
Because we don't have the same WC_Webhook instance as used in
wc_load_webhooks(), so it's impossible to check if the same
object's process() method is attached as a callback.
2019-01-18 14:30:35 +10:00
Brent Shepherd 21d724c65d PHPCS fixes
Add fixes required for Travis to pass the PR, but which aren't
related to the PR diff.
2019-01-18 14:30:35 +10:00
Brent Shepherd 0708c738b9 Only load 100 webhooks per request
To avoid slowing down page loads on sites with a large numbers of
webhooks.
2019-01-18 14:30:35 +10:00
Brent Shepherd 9fdbb124ae Add $limit param to wc_load_webhooks()
And the corresponding data stores. Defaults to null, meaning do not
limit, for backward compatibility.
2019-01-18 14:30:35 +10:00
Brent Shepherd e7a5a2ab2f Only load active webhooks on each request
To avoid slowing down page loads on sites with a large number of
disabled or paused webhooks, which do not need to be loaded or
enqueued.
2019-01-18 14:29:35 +10:00
Brent Shepherd f86b738db3 Use search_webhooks()
To avoid duplicate SQL
2019-01-18 14:29:34 +10:00
Brent Shepherd 67bf101aaf Add $status param to wc_load_webhooks()
And the corresponding data stores. Defaults to '', meaning do not
load only webhooks with a specific status. This maintains backward
compatibility. However, the call to wc_load_webhooks() within
WooCommerce::load_webhooks() can now only load active webhooks, as
they are the only ones that should be enqueued.
2019-01-18 14:29:34 +10:00
Brent Shepherd 8ee3e8a6e9 Add WC_Tests_Webhook_Functions::create_webhook()
To make it reusable.
2019-01-17 15:12:29 +10:00
Claudiu Lodromanean 3dee72eddc
Merge pull request #22452 from woocommerce/fix/21700
[REST API] Variations endpoint - Removed extra inherited filters from product endpoint
2019-01-16 09:41:40 -08:00
Claudiu Lodromanean 6540e89425
Merge pull request #22445 from woocommerce/fix/21996
Change priority of notices on the account page
2019-01-16 09:40:51 -08:00
Claudiu Lodromanean c2c7cbeccb
Merge pull request #22444 from woocommerce/fix/22119
Fix checkout field locales on first load
2019-01-16 09:39:42 -08:00
Claudiu Lodromanean df2cd4b232
Merge pull request #22439 from woocommerce/fix/22430
Make sure WC active before running queries for MS widget
2019-01-16 09:38:24 -08:00
Claudiu Lodromanean f4d1587652
Merge pull request #22419 from woocommerce/fix/22010
Remove on-hold orders from tax reports
2019-01-16 09:37:09 -08:00
Claudiu Lodromanean 989865469e
Merge pull request #22416 from woocommerce/fix/21871
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
Claudiu Lodromanean 86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Mike Jolley 932f68565a
Merge pull request #22479 from rodrigoprimo/add/travis-wordpress-nightly
Add a new Travis job to run WC unit tests using WordPress nightly
2019-01-16 16:39:30 +00:00
Mike Jolley ca3623fa41
Merge pull request #22461 from woocommerce/fix/21761
Bail if getimagesize fails in filter_image_sizes_to_only_missing_thumbnails
2019-01-16 16:37:09 +00:00
Mike Jolley 78ca5c0290
Merge pull request #22277 from johnrom/fix/22276
Add a filter, woocommerce_current_user_can_edit_customer_meta_fields
2019-01-16 16:31:18 +00:00
Mike Jolley 8c32574f30
Merge pull request #22469 from woocommerce/fix/22453
notify script plugins that the cart was emptied
2019-01-16 16:27:33 +00:00
John Rom 741435d816 Switch user meta permissions filter from user data to user id 2019-01-16 11:20:42 -05:00
John Rom 130a36107c Added filter to the save method so it is not bypassable 2019-01-16 11:00:46 -05:00
John Rom 186a1d5b7e Combine permission conditions into a single filter provided the default value 2019-01-16 10:56:26 -05:00
Mike Jolley 4fc197c67d
Merge pull request #21003 from Chunkford/patch-2
Giving the ability to add custom pricing data - read_price_data()
2019-01-16 15:22:40 +00:00
Mike Jolley 1125a5d76d
Merge pull request #22380 from Prospress/fix/22261
register order auto drafts post status
2019-01-16 15:11:48 +00:00
Mike Jolley c70bef3e9c Merge branch 'pr/22350' 2019-01-16 14:48:14 +00:00
Mike Jolley 2d44e90542 CS 2019-01-16 14:47:59 +00:00
Ron Rennick 5bba703723 update trigger name to `wc_cart_emptied` 2019-01-16 10:36:35 -04:00
Ron Rennick bc33f19630 add order draft status filter to allow resuming editing 2019-01-16 09:52:18 -04:00
Mike Jolley 213ba99664
Merge pull request #21961 from sebastianpisula/patch-1
New params for woocommerce_shipping_zone_*_methods_table actions
2019-01-16 13:01:45 +00:00
Mike Jolley 766dea1125
Merge pull request #22316 from ictbeheer/master
Support for Dutch postcodes
2019-01-16 11:38:21 +00:00
Mike Jolley 96a7447b0d
Merge pull request #22478 from woocommerce/renovate/stylelint-9.x
Update dependency stylelint to v9.10.0
2019-01-16 11:32:57 +00:00
Mike Jolley 50a86a1a33
Merge pull request #21562 from terence1990/feature/rest-api-crud-params-filter
Add a filter to WC_REST_CRUD_Controller::get_collection_params method to allow developers to change params
2019-01-16 11:32:03 +00:00
Mike Jolley 1b2c07a736
Merge pull request #22467 from woocommerce/fix/22150
Tweak default shipping estimate text
2019-01-16 11:30:05 +00:00
Mike Jolley 5102860a0b
Merge pull request #22468 from woocommerce/update/22070
Add UM states (Islands)
2019-01-16 11:28:50 +00:00
Rodrigo Primo c17aba608e Add a new Travis job to run WC unit tests using WordPress nightly
Doing this to help us find problems in the upcoming versions of WordPress.
2019-01-16 09:09:54 -02:00
Renovate Bot 4a3695ec0a
Update dependency stylelint to v9.10.0 2019-01-16 10:32:45 +00:00
Ron Rennick 3fae170c14 notify script plugins that the cart was emptied 2019-01-15 14:44:28 -04:00
Mike Jolley 976f79c683 Add UM islands as states. 2019-01-15 17:48:32 +00:00