Commit Graph

19704 Commits

Author SHA1 Message Date
Mike Jolley 77cade928a Merge pull request #13596 from woocommerce/fix/payment-token-crud-pattern
Update Payment Tokens to follow the same pattern for custom data as other objects.
2017-03-15 15:38:31 +00:00
Justin Shreve b917a87a73 Deprecated $context on get_display_name. 2017-03-15 08:21:02 -07:00
Mike Jolley 0ea5c52d14 Readme 2017-03-15 14:05:29 +00:00
Mike Jolley 20b857bfbf Merge pull request #13602 from JeroenSormani/fix-false-deprecated
Remove @(deprecated) sign from docblock to prevent false notice in ed…
2017-03-15 09:55:13 +00:00
Mike Jolley 282e1cb4ce Merge pull request #13601 from unfulvio/adjust-return-phpdoc-session
[#13600] Adjust  property value in phpdoc
2017-03-15 09:48:40 +00:00
JeroenSormani 08e441149b Remove @(deprecated) sign from docblock to prevent false notice in editors 2017-03-15 09:46:17 +01:00
Fulvio Notarstefano 5fea503190 [#13600] Adjust property value in phpdoc 2017-03-15 15:39:39 +08:00
Justin Shreve fb124232cf Update Payment Tokens to follow the same pattern for custom data as other object types.
Payment tokens was introduced in 2.6 and was updated to use the new CRUD code while some of the CRUD system was still in flux.

While most things were correct, the prop handling for custom fields (like a card's last 4 digits) were directly calling meta functions, instead of delegating to the data store/parent.

This PR moves these props to `extra_data` and follows the same pattern as product types or order items. It also updates some version tags to 3.0.0. Finally, it adds an additional test for saving meta after a create which looks like it was lacking.

To Test:
* Run `phpunit`.
* Go to the "My Account" tab and add a new payment method. You need a payment gateway that supports this, like Simplify.
* Test the add a payment method flow.
* Make a test purchase using the saved payment method.
2017-03-14 12:33:35 -07:00
Mike Jolley 448954b9ad Merge pull request #13592 from woocommerce/13572-prototype-pattern
Reusable galleries
2017-03-14 18:26:22 +00:00
Claudio Sanches 723cd4c1bf Merge pull request #13593 from woocommerce/fix-13583
Remove the clear code and property from woocommerce_form_field
2017-03-14 14:53:33 -03:00
Mike Jolley 7baf3ddc1c Remove the clear code and property from woocommerce_form_field
Fields can be sorted dynamically with JS, so the clear div will never
move with it and cannot be output reliably.

Clearing should be done with CSS.
2017-03-14 17:49:42 +00:00
Mike Jolley 1a2989376d Revert "Remove clear divs from address forms"
This reverts commit 4f8030aafb.
2017-03-14 17:32:04 +00:00
Mike Jolley cbe6934f61 Try in sh file so 5.2 does not break 2017-03-14 17:17:35 +00:00
Mike Jolley 0aad398144 Add to travis yml 2017-03-14 17:11:02 +00:00
Mike Jolley 178888fbdb Travis script 2017-03-14 16:59:40 +00:00
Mike Jolley a3cc5cc9bb has_meta -> meta_exists
#13590

Avoid has_meta conflict with old method.

#13581
2017-03-14 16:49:13 +00:00
Mike Jolley 1740f1e3e8 Merge pull request #13590 from woocommerce/fix-13581
Add a has_meta method to WC_Data
2017-03-14 16:42:40 +00:00
Mike Jolley d710ada38d Fix reset with more than one on page 2017-03-14 16:38:04 +00:00
Mike Jolley 1b8e4612ee Load markup for photoswipe so shortcodes can use it 2017-03-14 16:32:59 +00:00
Mike Jolley b7579b2686 Merge pull request #13589 from woocommerce/fix-13578
get_formatted_meta_data should ignore meta with no ID
2017-03-14 15:58:26 +00:00
Mike Jolley a6436eb915 prototype pattern 2017-03-14 15:48:18 +00:00
Manos Psychogyiopoulos 161b6a132b use data() correctly 2017-03-14 15:42:15 +02:00
Manos Psychogyiopoulos 20d2c8b269 merge branch 'master' into multiple-and-dynamic-galleries 2017-03-14 15:31:01 +02:00
Manos Psychogyiopoulos 290e000bcb better use of gallery var 2017-03-14 15:04:08 +02:00
Mike Jolley ed09c20715 Trying to fix travis tests 2017-03-14 12:50:54 +00:00
Mike Jolley a0c160f6e9 Merge branch 'pr/13558' 2017-03-14 12:35:19 +00:00
Mike Jolley 49b782d20e Correct formatting 2017-03-14 12:34:20 +00:00
Mike Jolley a9e224fa78 Wrap rating with esc_html 2017-03-14 12:32:34 +00:00
Mike Jolley 08c6cfdea8 composer version 2017-03-14 12:28:48 +00:00
Mike Jolley 9d7c5cee39 Work around legacy has_meta method for orders 2017-03-14 12:25:39 +00:00
Mike Jolley 7f787fac84 Check empty strings literally
Closes #13565
2017-03-14 12:17:49 +00:00
Mike Jolley 6826dcbfe1 Tests for has_meta 2017-03-14 12:08:39 +00:00
Mike Jolley 8f2746049d has_meta method 2017-03-14 12:08:33 +00:00
Manos Psychogyiopoulos 4cc936c383 move event handlers to init 2017-03-14 13:52:48 +02:00
Manos Psychogyiopoulos fb6c1b09fc use class prop `flexslider_enabled` in `init_zoom` 2017-03-14 13:44:45 +02:00
Mike Jolley 186c26e60d Missing return in offsetSet 2017-03-14 11:33:35 +00:00
Manos Psychogyiopoulos 4e48a2ddfa revert change from attr. to data. 2017-03-14 13:33:05 +02:00
Mike Jolley f404eeede6 get_formatted_meta_data should ignore meta with no ID 2017-03-14 11:28:57 +00:00
Mike Jolley 4f8030aafb Remove clear divs from address forms
#13583
2017-03-14 11:19:59 +00:00
Mike Jolley 3802ccf869 Merge pull request #13585 from woocommerce/unlimited-downloads
Do not set remaining downloads when is unlimited
2017-03-14 11:08:55 +00:00
Manos Psychogyiopoulos 9181f1c151 allow init with args 2017-03-14 12:55:25 +02:00
James Koster 53b7844412 Replace figure tags with divs. closes #13546
For easier theme support
2017-03-14 10:42:21 +00:00
Manos Psychogyiopoulos 281209c9ae Merge branch 'master' of https://github.com/woocommerce/woocommerce into multiple-and-dynamic-galleries 2017-03-14 09:53:34 +02:00
Claudio Sanches 591327287a Do not set remaining downloads when is unlimited 2017-03-13 21:24:59 -03:00
Claudio Sanches ad1073c212 Merge pull request #13575 from woocommerce/fix-13573
Only show thumbs if there is a main post thumbnail
2017-03-13 16:25:48 -03:00
Claudio Sanches 94628c2460 Merge pull request #13574 from woocommerce/alt-13541
Wrap hidden input in div
2017-03-13 16:25:15 -03:00
Mike Jolley ee0896a7ec Only show thumbs if there is a main post thumbnail 2017-03-13 18:04:43 +00:00
Mike Jolley 7fd4005475 Wrap hidden input in div
Closes #13541
2017-03-13 17:56:25 +00:00
Mike Jolley 7e165413cf Check for arrays, not serialised strings
Fixes #13556
2017-03-13 17:49:59 +00:00
Mike Jolley c80fed52d8 Merge pull request #13571 from woocommerce/fix-13529
Check $_POST before trying to save order address inputs
2017-03-13 17:47:21 +00:00