Commit Graph

44 Commits

Author SHA1 Message Date
Jonathan Sadowski 91c55b54c0 Update prepared query to use single-quote instead of double-quotes 2021-07-16 15:00:02 -05:00
Jonathan Sadowski db44d15e3f Apply patch to class-wc-webhook-data-store.php to fix sqli issue 2021-07-16 14:59:02 -05:00
vedanshujain 02f7a86db0 Specify default sort order for webhok DS. 2021-06-22 12:28:44 +05:30
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Rodrigo Primo 62d6b05b58 Fix Generic.Formatting.MultipleStatementAlignment violations
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
James Collins b29f8cc1bd Deleted cached webhook data when deleting a webhook 2019-12-04 12:04:35 +08:00
Peter Fabian 309c48ab0e Deprecated old cache function and replaced it with a new one. 2019-11-28 14:03:57 +01:00
Claudio Sanches 01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
Gerhard 3d57a4b474 Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix. 2019-05-15 10:47:50 +02:00
Mike Jolley e354bb90aa Pass objects to new/update actions 2019-04-17 12:50:46 +01:00
Mike Jolley 4fd2a9f77e Update from master 2019-02-18 15:04:58 +00:00
Mike Jolley 71d3121872 Performance: Support pagination to avoid double queries to search webhooks 2019-02-18 14:58:32 +00:00
Mike Jolley 4b3c1660f1 Dedicated count method 2019-02-18 13:41:14 +00:00
Mike Jolley d787c34206 get_webhooks_ids escaping 2019-02-18 13:34:13 +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 1d46294ee8 Update versions 2019-02-18 13:07:04 +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 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 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 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
Rodrigo Primo c15d622dd2 WC_Data::get_id() does not take any parameters
This commit removes a parameter from a call to WC_Data::get_id() as this method does not take any parameters
2019-01-10 17:10:13 -02:00
Rodrigo Primo 609430a8f1 Remove unused parameter from WC_Webhook_Data_Store::delete() 2019-01-10 17:08:41 -02:00
Rodrigo Primo 3cf945d5d9 Fix PHPCS errors automatically using phpcbf 2019-01-10 17:07:53 -02:00
Rodrigo Primo 9765733597 phpcs fixes in includes/data-stores/class-wc-webhook-data-store.php 2018-03-08 16:29:22 -03:00
Rodrigo Primo 2b5103c849 Fix phpcs violations using phpcbf 2018-03-08 14:30:43 -03:00
Claudiu Lodromanean 224fa43fe2
Merge pull request #17986 from woocommerce/fix/12439-pending-delivery
Fixed webhook initial test delivery ping
2017-12-01 10:31:46 -08:00
Claudiu Lodromanean 1a2a332f54
Merge pull request #17939 from woocommerce/feature/17734
Apply Webhooks CRUD into REST API
2017-12-01 10:07:21 -08:00
Claudio Sanches f5cddc4f36 Fixed webhook initial test delivery ping
Part of #12439
2017-12-01 14:04:59 -02:00
Claudio Sanches 01b3f2bac4 Trigger webhook when delivery URL is changed 2017-11-30 16:48:16 -02:00
Claudio Sanches 575e2d2224 Advanced webhooks search 2017-11-28 17:39:42 -02:00
Claudio Sanches 6553a71586 Fixed how read empty dates while reading webhooks from database 2017-11-10 11:58:25 -02:00
Claudio Sanches 61efd99c61 Fixed WC_Webhook_Data_Store::get_webhooks_ids transient 2017-11-09 11:03:14 -02:00
Claudio Sanches bf6436e0c9 Cache search webhooks results and added method to count webhooks by status 2017-11-07 17:42:14 -02:00
Claudio Sanches 47ac2f140c Search webhooks with data store 2017-11-07 16:10:38 -02:00
Claudio Sanches 95de32d9c7 Changed webhook table name for #16390 2017-08-18 13:41:02 -03:00
Claudio Sanches 2a3d37cc89 Webhooks does not have meta data 2017-08-17 19:42:54 -03:00
Claudio Sanches 2d19d47357 Fixed spacing 2017-08-17 19:04:36 -03:00
Claudio Sanches 3266fd48fe Fixed how to auto set dates 2017-08-17 18:43:08 -03:00
Claudio Sanches 1829c81689 Fixed coding standards 2017-08-17 11:14:41 -03:00
Claudio Sanches 9fac34fbcb Save webhook results on wp cache 2017-08-17 11:07:30 -03:00
Claudio Sanches dcf3e27155 New helpers to load webhooks 2017-08-17 10:51:20 -03:00
Claudio Sanches 00185c5911 Webhook data store 2017-08-17 00:08:32 -03:00