Claudio Sanches
2a3d37cc89
Webhooks does not have meta data
2017-08-17 19:42:54 -03:00
Claudio Sanches
12b3f94992
Merge pull request #16506 from woocommerce/fix/16489
...
Fixed extra "!" and ")" on #16489
2017-08-17 19:06:45 -03:00
Claudio Sanches
909c3f6c8f
Fixed extra "!" and ")" on #16489
2017-08-17 19:05:46 -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
b86e78b53e
Webhook CRUD Unit tests
2017-08-17 18:36:53 -03:00
Claudio Sanches
b93a9732df
Fixed validation of set_status and set_topic
2017-08-17 18:36:42 -03:00
Claudio Sanches
568aae5e0f
Validate webhook topic before set
2017-08-17 17:57:09 -03:00
Claudio Sanches
bf674bce6e
Validate webhook status
2017-08-17 17:54:31 -03:00
Claudio Sanches
3fb17f23e7
Merge pull request #16478 from ramiy/patch-1
...
i18n: Rewrite the translation string logic
2017-08-17 13:59:37 -03:00
Claudio Sanches
bf81af778b
Merge pull request #16489 from aj-adl/master
...
Add filter to woocommerce_order_again_button to match WC_Form_Handler
2017-08-17 13:55:49 -03:00
Claudio Sanches
fad774267c
Merge branch 'master' into feature/16445
2017-08-17 13:32:47 -03:00
Claudio Sanches
e31da15959
Improve test_wc_load_webhooks() checking when returns false
2017-08-17 12:32:30 -03:00
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
0ac915d0e9
Removed legacy webhook unit tests
2017-08-17 12:07:15 -03:00
Claudio Sanches
bc95b1c153
Moved wc_is_webhook_valid_topic to wc-webhook-functions.php
2017-08-17 12:06:45 -03:00
Mike Jolley
cd15e18e68
Fix failing test
2017-08-17 15:45:26 +01: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
Alex James Bishop
d4a02819a7
Add filter to woocommerce_order_again_button to match WC_Form_Handler->order_again
...
This commit adds the `woocommerce_valid_order_statuses_for_order_again` filter to the conditional check
before displaying the order-again button.
The purpose is to enable consistency when altering the valid order again statuses - in the past a dev would
need to use this filter to let the order through the form handler, and then override the template file for a really
trivial reason just to get the button to display.
2017-08-17 11:31:06 +09:30
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
claudiulodro
f0afd14ed3
Sort multiselects alphabetically
2017-08-16 10:10:09 -07:00
Corey Smith
a6cf08d8cf
Wrapped 'Delete selected row(s)' button in condition
2017-08-16 11:56:30 -05:00
Claudiu Lodromanean
5ff7704db4
Merge pull request #16476 from woocommerce/fix/16455
...
Fix breadcrumbs for regular categories
2017-08-16 08:49:01 -07:00
Rami Yushuvaev
4ae42313ce
i18n: Rewrite the translation string logic
...
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.
A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
ragulka
d73e7e4f9d
Prevent unwanted double cart notices ( #16460 )
...
* Don't add shipping zone debug message when doing ajax
Prevent an issue where the "Customer matched zone" debug message is shown twice after first selecting a shipping method and then changing a product's quantity in cart and clicking Update cart.
* Don't pass event object to cart.update_cart
Prevent accidentally preserving cart notices when `wc_update_cart` event is triggered on body. If the event object is passed to update_cart() as the first param, it evaluates to true, forcing existing notices to be preserved.
* Pass custom arguments to cart.update_cart()
Instead of simply not passing the event object, pass any custom arguments, so it's possible to do something like: $( body ).trigger( 'wc_update_cart', true ); to still preserve notices if needed.
2017-08-16 11:34:35 +01:00
Mike Jolley
201b3bc056
Merge pull request #16466 from woocommerce/fix/rounding
...
Fix discounts rounding issues
2017-08-16 11:28:09 +01:00
Mike Jolley
38ab37597c
Merge pull request #16467 from ramiy/patch-1
...
i18n: Simpler translation string with placeholders
2017-08-16 11:26:06 +01:00
Mike Jolley
34ae983cc9
Merge pull request #16470 from ramiy/patch-4
...
i18n: Simpler translation string with placeholders
2017-08-16 11:25:48 +01:00
Mike Jolley
bf84592e87
Merge pull request #16469 from ramiy/patch-3
...
i18n: Merge two similar translation strings
2017-08-16 11:25:23 +01:00
Mike Jolley
875956c3aa
Merge pull request #16468 from ramiy/patch-2
...
i18n: Simpler translation string with placeholders
2017-08-16 11:24:56 +01:00
Mike Jolley
3aee17faeb
Fix breadcrumbs for regular categories
...
Closes #16455
2017-08-16 11:22:22 +01:00
Mike Jolley
812ee4b917
Merge pull request #16475 from woocommerce/fix/image-zoom-2017
...
Fix disappearing image when zoomed on touch devices whilst using 2017 theme
2017-08-16 10:47:08 +01:00
James Koster
a2740cf7a5
Fix disappearing image when zoomed on touch devices
2017-08-16 10:20:14 +01:00
Patrick Garman
f19a63e1d7
Merge the DB and DB Table Size tables
2017-08-15 19:52:14 -05:00
Rami Yushuvaev
125ead910a
i18n: Simpler translation string with placeholders
...
One more... replacing function name with `%s` placeholder, this way translators can't misspell the function name.
2017-08-16 00:42:32 +03:00
Rami Yushuvaev
43744e4f27
i18n: Merge two similar translation strings
...
Replace:
`wp_remote_get() failed. Contact your hosting provider.`
`wp_remote_post() failed. Contact your hosting provider.`
With:
`%s failed. Contact your hosting provider.`
Note:
This also a good practice because the function name is outside of the translation string, this way the translator can't misspell the function name.
2017-08-16 00:32:36 +03:00
Rami Yushuvaev
d1f4acc730
i18n: Simpler translation string with placeholders
...
Replace:
`wc_get_product should not be called before the woocommerce_init action.`
With:
`%1$s should not be called before the %2$s action.`
2017-08-16 00:26:14 +03:00
Rami Yushuvaev
0087536296
i18n: Simpler translation string with placeholders
...
Replace:
`WC_Logger::log was called with an invalid level "%s".`
With:
`%1$s was called with an invalid level "%2$s".`
2017-08-16 00:22:46 +03:00
claudiulodro
9a47146716
Fix discounts rounding issues
2017-08-15 14:11:25 -07:00