Claudiu Lodromanean
983896cb8b
Update v2 coupon api
2017-03-14 13:25:45 -07:00
Claudiu Lodromanean
9e724d44cc
Save expiry time in new utc timestamp meta field
2017-03-14 12:49:40 -07: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
071d389c73
Merge pull request #13595 from woocommerce/13527-wp-api
...
Included access_expires_gmt to customer downloads endpoint v2
2017-03-14 19:21:08 +00:00
Claudio Sanches
1b1fc109f7
Included access_expires_gmt to customer downloads endpoint v2
2017-03-14 16:04:22 -03:00
Mike Jolley
38148e9981
Merge pull request #13594 from woocommerce/13527-api
...
Fixed access_expires in legacy REST API
2017-03-14 18:52:59 +00:00
Claudio Sanches
137de9eea6
Fixed access_expires in legacy REST API
2017-03-14 15:40:36 -03: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
Claudiu Lodromanean
62d00ff950
Return offset timestamp not utc in legacy
2017-03-14 10:39:37 -07:00
Mike Jolley
1a2989376d
Revert "Remove clear divs from address forms"
...
This reverts commit 4f8030aafb
.
2017-03-14 17:32:04 +00:00
Claudiu Lodromanean
3476121709
Use local time where appropriate
2017-03-14 10:27:48 -07: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
Claudiu Lodromanean
e929a7fd17
Cant use ::CLASS in php 5.2
2017-03-14 08:42:08 -07:00
Claudiu Lodromanean
76536688e2
Use utc time for expiry box
2017-03-14 08:17:53 -07:00
Claudiu Lodromanean
f042305ff7
Update date_expires meta handling
2017-03-14 08:10:31 -07: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
e13badcdb3
Merge pull request #13584 from woocommerce/13527-update-downloads-dates
...
Apply WC_DateTime to WC_Customer_Downloads
2017-03-14 12:11:28 +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
f1c08f1a8e
Updated downloads view on admin
2017-03-13 20:54:43 -03:00