Justin Shreve
bfa9437a43
Rename the meta name _payment_tokens to remove the wc_ prefix, since this meta is a part of WC orders already.
2016-03-01 11:49:38 -08:00
Justin Shreve
72a4823f27
Pass the token object in the _deleted hook.
2016-03-01 11:49:38 -08:00
Justin Shreve
da9368e8be
Switch the payment token meta to use WP's metadata functions.
2016-03-01 11:49:38 -08:00
Justin Shreve
2e896ae24a
Extend WC_Payment_Token_CC from WC_Payment_Token_eCheck since they both share eCheck's fields as a base.
2016-03-01 11:49:38 -08:00
Justin Shreve
6112752836
Misc cleanup based on PR feedback:
...
* Remove $token_id parameter from WC_Order's add_payment_token. get_id() can be used to access the ID
* Rename our list of token ids from meta to $token_ids as it makes more sense
* Cleaned up/fixed some of the comments in WC_Payment_Token
* Some code formatting fixes
2016-03-01 11:49:38 -08:00
Justin Shreve
9741ab0751
Swap method_exists for is_callable.
2016-03-01 11:49:38 -08:00
Justin Shreve
f9b19234b0
Fix coding/WP standard for primary key definitions - there must be two spaces between the words PRIMARY key and the definition.
2016-03-01 11:49:37 -08:00
Justin Shreve
204922e2ae
Add methods for managing payment tokens associated with an order.
2016-03-01 11:49:37 -08:00
Justin Shreve
c5aec06a8a
First pass at a payment token API
2016-03-01 11:49:37 -08:00
Claudio Sanches
29141af873
Merge branch 'master' of github.com:woothemes/woocommerce
2016-03-01 14:14:04 -03:00
Claudio Sanches
1560dc81d8
Changelog for 2.5.3
2016-03-01 14:13:51 -03:00
Claudio Sanches
27a9b72d36
Merge pull request #10447 from jonkoops/tax-form-field-classes
...
Add wrapper classes to product category form fields.
2016-03-01 14:02:46 -03:00
Horrower
875cd46f45
Hook for intercept deliver of webhooks
...
Let other plugins intercept deliver for some messages queue like rabbit/zeromq
https://github.com/woothemes/woocommerce/issues/10424#issuecomment-190806538
2016-03-01 19:58:27 +03:00
Claudio Sanches
3e955f6086
[2.5] Create new function to prevent endpoint indexing
2016-03-01 13:45:25 -03:00
Jon Koops
a8cb7f7d00
Add wrapper classes to product category form fields.
...
Add wrapper classes to Display Type and Thumbnail fields of a product category in the admin. These classes follow the same naming convention as other taxonomy fields in the WordPress admin.
2016-03-01 15:37:01 +01:00
Mike Jolley
6f04ff1fa0
Replace size with length
...
Fixes #10444
2016-03-01 13:08:25 +00:00
Jon Koops
bc097553c6
Add order_schema_markup action to output Schema markup for order emails.
2016-03-01 13:02:56 +01:00
Claudio Sanches
256be9b028
[2.5] Allow send array as webhooks callbacks, closes #10424
2016-02-29 16:23:45 -03:00
Claudio Sanches
19019f75ca
[2.5] Stop to remove the 'all' from wp_count_comments(), closes #10441
2016-02-29 13:35:24 -03:00
Mike Jolley
d4df89e1b9
[2.5] Don't duplicate rating and review counts
...
Fixes #10440
2016-02-29 13:36:32 +00:00
Mike Jolley
8edf6d9286
Noindex endpoints
...
Closes #10433
2016-02-29 12:52:45 +00:00
Mike Jolley
14e03038e3
Show customer details for logged in users only.
...
Possibly for [2.5] after confirming with @claudiosmweb and
@justinshreve.
#10433
2016-02-29 12:43:19 +00:00
Mike Jolley
fa2280f3f8
Add notice on fail
2016-02-29 12:33:09 +00:00
Mike Jolley
09ef555e5a
[2.5] Combine update post calls
2016-02-29 12:24:02 +00:00
Mike Jolley
b9c423570f
Merge pull request #10439 from shivapoudel/user-list
...
Tweaks API list table User column
2016-02-29 12:17:39 +00:00
Shiva Poudel
4a0e160c3b
Since shop manager have no right to edit admin profile
2016-02-28 21:07:51 +05:45
Shiva Poudel
9dec203721
By default display_name is user_login, no target for database change ;)
2016-02-28 21:04:57 +05:45
Claudio Sanches
22a8743e1d
Merge pull request #10437 from coderkevin/fix_state_input
...
Fix state input box for cart shipping. Fixes #10408
2016-02-27 12:49:52 -03:00
Kevin Killingsworth
7fc0932e33
Fix state input box for cart shipping.
...
Input box wasn't reappearing when switching from a hidden input
to a text input. Changed the JQuery selector to go off the input
type.
2016-02-27 00:50:05 -06:00
Mike Jolley
efe836dc12
Merge branch 'add/id-based-section-loading-shipping-and-checkout'
2016-02-26 15:26:45 +00:00
Mike Jolley
c3554490b5
Backwards compatibility
2016-02-26 15:26:39 +00:00
Mike Jolley
d916eb5118
Merge branch 'pr/10423'
2016-02-26 14:36:59 +00:00
Mike Jolley
e9ff396348
Only add when using intval for stock amounts
2016-02-26 14:36:53 +00:00
Mike Jolley
74e35a2573
Merge pull request #10425 from woothemes/fix/no-instance-id-for-non-classname-shipping-methods
...
Construct copy of instance of shipping method and pass instance id to it
2016-02-26 14:27:41 +00:00
Mike Jolley
e4932415c9
Improved tracking template
2016-02-26 14:25:06 +00:00
Mike Jolley
e09613d7da
get_external_ip_address docblock
2016-02-26 13:34:51 +00:00
Mike Jolley
384db11839
Hide disabled emails from dropdown
...
Fixes #10428
2016-02-26 13:22:31 +00:00
Mike Jolley
155afbb99a
Checkout RTL styles
2016-02-26 11:43:24 +00:00
Allen Snook
bdb816f83b
Use a PHP 5.2 compatible approach for creating new instances of
...
shipping methods which were registered using an instance
2016-02-25 11:56:05 -08:00
Allen Snook
1ea53460f2
Construct copy of instance of shipping method and pass instance id to it
2016-02-25 11:29:10 -08:00
Jon Koops
111b72c159
Add attributes to quantity input to show numeric keyboard on mobile devices.
...
This commit adds both a `pattern` attribute to restrict user's input to numerical characters, and the forwards compatible `inputmode` attribute to hint at the keyboard layout to use. These attributes combined make sure that the numerical keyboard shows instead of the normal keyboard on most mobile devices (tested on the latest versions of Android and iOS).
Possible Caveats:
- Due to the nature of the numeric keyboard on iOS it is impossible to add a decimal point.
Further Reading:
https://stackoverflow.com/questions/6178556/iphone-numeric-keyboard-for-text-input
https://www.smashingmagazine.com/2015/05/form-inputs-browser-support-issue/
http://danielfriesen.name/blog/2013/09/19/input-type-number-and-ios-numeric-keypad/
2016-02-25 17:48:06 +01:00
Mike Jolley
83d2f64e9e
Tweak wc_get_product_variation_attributes to ignore non variation attributes
2016-02-25 14:13:56 +00:00
Mike Jolley
d7d609d85a
Remove comment
2016-02-25 14:13:56 +00:00
Mike Jolley
78902fafc8
Merge pull request #10420 from shivapoudel/filter
...
Is an action hook for phpmailer_init
2016-02-25 12:34:23 +00:00
Mike Jolley
b8e03489be
[2.5] Transactional emails for failed -> on hold
2016-02-25 11:15:42 +00:00
Shiva Poudel
295a900b03
Is an action hook for phpmailer_init
2016-02-25 16:59:15 +05:45
Mike Jolley
5494216c93
Merge pull request #10412 from woothemes/hotfix-duplicate-session-errors
...
Use $wpdb->replace instead of doing a select and then deciding to do …
2016-02-24 10:28:52 +00:00
Gerhard Potgieter
62e19162e6
Use $wpdb->replace instead of doing a select and then deciding to do an update or insert. Fixes #10389
2016-02-23 14:48:48 +02:00
Mike Jolley
a6cdabff7e
[2.5] Multibyte safe trim string
...
Fixes #10378
2016-02-23 11:40:16 +00:00
Mike Jolley
5ddc0b1a9a
[2.5] Fix CLI when setting a single category
...
Fixes #10409
2016-02-23 11:32:18 +00:00