Commit Graph

12285 Commits

Author SHA1 Message Date
Claudio Sanches 8c120da100 Test webhook functions 2017-08-17 12:29:34 -03:00
Claudio Sanches d02a7655fd Allow numeric api version on Webhook CRUD 2017-08-17 12:18:32 -03:00
Claudio Sanches bc95b1c153 Moved wc_is_webhook_valid_topic to wc-webhook-functions.php 2017-08-17 12:06:45 -03:00
Claudio Sanches 4762c04b4b Removed shop_webhook post type and removed upgrade scripts
With Webhook CRUD there is no more need to update hooks on database.
2017-08-17 11:37:57 -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 455888fae4 Included get_webhooks_ids() to interface 2017-08-17 10:52:42 -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
Claudio Sanches 1a3a2c0658 Updated webhook database schema
Allow default dates to '0000-00-00 00:00:00' and failure_count to '0'
2017-08-16 21:48:09 -03:00
Claudio Sanches 256ad31130 Include missing date methods on Webhook CRUD 2017-08-16 21:40:31 -03:00
Claudio Sanches 20291a6305 Webhook CRUD 2017-08-16 21:20:02 -03:00
Claudio Sanches 67a6a7ce7f Deprecated WC_Webhook::update_status 2017-08-16 21:14:07 -03:00
Claudio Sanches a8f0f854f4 Legacy Webhook class 2017-08-16 21:07:24 -03:00
Claudio Sanches e8defa48dc Webhook database schema 2017-08-16 15:37:22 -03:00
Claudio Sanches 82a6de2e49 Merge pull request #16459 from ramiy/patch-3
i18n: Avoid using HTML tags in translation strings
2017-08-15 14:48:35 -03:00
Claudio Sanches 3a12f7b494 2.1.2 db update functions 2017-08-15 13:01:28 -03:00
Claudio Sanches 339ab41bf1 Remove unfiltered_html capability from Shop Managers 2017-08-15 12:57:12 -03:00
Claudio Sanches 9e8aa83d47 Escape product names on reports 2017-08-15 12:56:35 -03:00
Claudio Sanches 0fec9dbfe7 Merge pull request #16458 from ramiy/patch-2
i18n: Simpler translation string with placeholders
2017-08-15 12:49:31 -03:00
Mike Jolley 129eae141a Fix custom discount amounts not multiplying by qty 2017-08-15 16:25:39 +01:00
Mike Jolley 3c18d5e849 Adjust total discount for ex.tax 2017-08-15 16:25:39 +01:00
Claudio Sanches 7a44c3d700 Merge pull request #16457 from ramiy/patch-1
i18n: Simpler translation string with placeholders
2017-08-15 12:05:32 -03:00
Mike Jolley de35d9ba02 Apply woocommerce_coupon_get_discount_amount without cents
cc @claudiulodro
2017-08-15 15:29:22 +01:00
Claudio Sanches a6017741ad Merge pull request #16456 from woocommerce/update/status-tools
Tool to purge webhook logs
2017-08-15 11:02:27 -03:00
Mike Jolley 835d0ab450 Fix remove tax column
Closes #16443
2017-08-15 14:51:12 +01:00
Rami Yushuvaev 6f7c817b78 i18n: Avoid using HTML tags in translation strings
This PR moves the `<strong>` HTML tags from the translation strings.

Replacing: `Order scheduled for: <strong>%1$s</strong>.`
With: `Order scheduled for: %s.`

We did the same in WordPress core across several releases (4.3 - 4.7). Because it's makes the translation process to RTL language (like Hebrew) much easier.
2017-08-15 15:07:55 +03:00
Rami Yushuvaev 7ce117a0ca i18n: Simpler translation string with placeholders
Replace:

`The provided handler <code>%s</code> does not implement WC_Log_Handler_Interface.`

With:

`The provided handler %1$s does not implement %2$s.`
2017-08-15 14:48:42 +03:00
Rami Yushuvaev 7ad61068e1 i18n: Simpler translation string with placeholders
Replace:

`The class <code>%s</code> provided by woocommerce_logging_class filter must implement <code>WC_Logger_Interface</code>.`

With:

`The class %1$s provided by %2$s filter must implement %3$s.`
2017-08-15 14:39:41 +03:00
Mike Jolley 392ce417bc docblocks 2017-08-15 12:21:12 +01:00
Mike Jolley 3852ce59c8 Tool to purge webhooks 2017-08-15 12:15:17 +01:00
Mike Jolley a44a57b5d9 Improve tools page styling 2017-08-15 12:05:34 +01:00
Mike Jolley f62d505797 Merge pull request #16427 from nyordanov/variation-permalink-infinite-loop
Prevent infinite recursion in WC_Post_Data::variation_post_link()
2017-08-15 10:59:36 +01:00
Mike Jolley 4101e313bb Merge pull request #16392 from woocommerce/feature/admin-apply-discount-15501
[WIP] Admin discounts
2017-08-15 10:07:00 +01:00
Mike Jolley 70248b2fa6 Merge pull request #16419 from woocommerce/fix/1645
Use array_replace in order item apply_changes
2017-08-15 09:59:02 +01:00
claudiulodro 2eb107b0af Add 5.2 fallback 2017-08-14 11:45:54 -07:00
claudiulodro ae80d12d80 Merge master 2017-08-14 11:12:09 -07:00
Claudiu Lodromanean 28c5af4922 Merge pull request #16440 from woocommerce/fix/16422
Adjust coupon user limit logic
2017-08-14 10:24:51 -07:00
Claudiu Lodromanean 1f2891cfd3 Merge pull request #16439 from woocommerce/fix/16432
Switch CLI tools command over to v2 API
2017-08-14 10:04:02 -07:00
Claudiu Lodromanean f0126852a5 Merge pull request #16438 from woocommerce/fix/16405
Add error handling for wp_insert_term
2017-08-14 10:01:22 -07:00
Rami Yushuvaev 17d10b3e9f i18n: Fix some translation strings (#16441)
* i18n: permissions -> permission

* i18n: permissions -> permission
2017-08-14 17:25:08 +01:00
Mike Jolley be11c1089f Fix tests 2017-08-14 16:03:50 +01:00
Mike Jolley 7ddfe0703b Store coupon item taxes 2017-08-14 15:57:51 +01:00
Mike Jolley c74835ec31 Use WP_User_Query 2017-08-14 12:51:04 +01:00
Mike Jolley 40757ddf86 Search given email against all user fields for matches. 2017-08-14 12:28:19 +01:00
Mike Jolley 6f4fd61a4f Do not check if logged in 2017-08-14 12:28:03 +01:00
Mike Jolley 147a7f9419 Switch CLI tools command over to v2 API
Closes #16432
2017-08-14 10:45:44 +01:00
Mike Jolley c63e94d299 Add error handling for wp_insert_term
Fixes #16405
2017-08-14 10:40:00 +01:00
Mike Jolley a7f6d49f16 Merge pull request #16421 from bekarice/fix/shipping-availability-filters
Pass WC_Shipping_Method instance to availability filters
2017-08-13 11:19:42 +01:00
Nikolay Yordanov 96b4467179 Prevent infinite recursion in WC_Post_Data::variation_post_link()
If a variation's parent doesn't exist, WC_Product_Variation::get_parent_id()
will return 0, which causes WC_Post_Data::variation_post_link()
to enter into an infinite recursion trying to get the permalink
of the nonexistent parent
2017-08-12 11:26:32 +01:00