Mike Jolley
9bcfcb82c5
Merge branch 'master' into remove-product-internal-meta-keys
...
# Conflicts:
# includes/data-stores/class-wc-product-data-store-cpt.php
2017-03-20 16:13:45 +00:00
Mike Jolley
2dbf0d7560
Merge pull request #13656 from woocommerce/remove-post-internal-meta-keys
...
Remove post related internal post keys from products
2017-03-20 12:48:39 +00:00
JeroenSormani
a29ba23fab
Miscellaneous cleanup of typos + change some return types for IDE helpers
2017-03-20 11:03:14 +01:00
Claudio Sanches
2d400bffd2
Remove post related internal post keys froom products
2017-03-17 17:37:38 -03:00
Claudio Sanches
1a87792109
Remove some product internal meta keys
2017-03-17 17:30:38 -03:00
Claudio Sanches
0f4a8b88e2
Merge pull request #13612 from woocommerce/fix-payment-token-extra-data
...
Prevents combining empty arrays in WC_Payment_Token_Data_Store
2017-03-15 15:53:25 -03:00
Claudio Sanches
abb053b277
Prevents combining empty arrays in WC_Payment_Token_Data_Store
...
PHP 5.3 and 5.2 issue E_WARNING and return FALSE for empty arrays.
2017-03-15 15:39:24 -03:00
Claudio Sanches
c856abba3e
Change default WordPress auto-draft title for product
...
This helps handle variations title while syncing variations.
Using a translatable string can led to errors, like a auto-draft started
by an user with WP admin set up as pt_BR and published by an user in
en_GB.
2017-03-15 15:12:49 -03:00
Claudio Sanches
dfd2d7387c
Revert 71ecb57
2017-03-15 14:08:41 -03:00
Claudio Sanches
71ecb57d2d
Fixed missing text domain
2017-03-15 13:59:18 -03:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
75a5b062cf
Merge pull request #13577 from woocommerce/fix-13498
...
Timezone/Date method handling
2017-03-15 16:09:41 +00:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
a34dd0480d
Merge pull request #13587 from woocommerce/fix-13525
...
Update coupon date handling
2017-03-15 15:26:41 +00:00
Claudiu Lodromanean
111246771c
Use date_expires meta key
2017-03-15 07:38:57 -07:00
Boro Sitnikovski
74388dafbf
Do not pass `true` to `update_post_meta` as prev value.
2017-03-15 14:33:24 +01:00
Claudiu Lodromanean
cb3568add9
Add new meta key to internal meta keys
2017-03-14 14:14:07 -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
Claudiu Lodromanean
3476121709
Use local time where appropriate
2017-03-14 10:27:48 -07:00
Claudiu Lodromanean
f042305ff7
Update date_expires meta handling
2017-03-14 08:10:31 -07: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
Claudio Sanches
c4134586cd
FUpdate how save download dates
2017-03-13 20:54:33 -03:00
Claudiu Lodromanean
b3c846da56
Use 2.6-format data for the expiry_date meta value
2017-03-13 14:37:34 -07:00
Mike Jolley
9bee678819
API updates
2017-03-13 21:36:31 +00:00
Claudiu Lodromanean
f1925e561a
Update coupon data store to use new dates
2017-03-13 14:24:05 -07:00
Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00:00
Mike Jolley
38afff0031
Merge pull request #13516 from woocommerce/fix-13505
...
Make increase_usage_count work correctly on concurrent checkout
2017-03-10 19:07:57 +00:00
Mike Jolley
61484ed711
Update API endpoints
2017-03-10 18:54:59 +00:00
Claudiu Lodromanean
d630b948e3
Better increase/decreasing
2017-03-10 10:28:56 -08:00
Claudiu Lodromanean
d70723553d
CHange vary to update
2017-03-10 09:18:14 -08:00
Mike Jolley
c2339e1983
Data store read
2017-03-10 14:48:18 +00:00
Mike Jolley
bdc302a9fb
Data store write
2017-03-10 14:44:00 +00:00
Claudiu Lodromanean
3aea9a0b2f
DRY out the meta bumping functions
2017-03-09 08:51:47 -08:00
Mike Jolley
6848fad224
Merge branch 'timezone-poc' into fix-13498
2017-03-09 16:10:07 +00:00
Mike Jolley
28a8d05285
Handle date paid in getter and during save to avoid filters during construct
2017-03-09 14:40:19 +00:00
Mike Jolley
a5c10d07c1
Fix is_purchasable (requires save) when price is null
...
Fixes #13043
2017-03-09 13:26:12 +00:00
Claudiu Lodromanean
e36ee46dea
Make increase_usage_count work correctly on concurrent checkoutt
2017-03-08 15:27:37 -08:00
Mike Jolley
a490b85d3e
Handle saves
2017-03-08 16:51:46 +00:00
Aristeides Stathopoulos
70ee7ae7ea
Fix some PHPCS errors
2017-03-07 19:57:28 +02:00
Claudio Sanches
64b45e9909
Prevent update or list _order_count and _money_spent on WC_Customer_Data_Store
2017-03-06 19:03:26 -03:00
Mike Jolley
296daf19c2
Avoid wc_clean
...
Fixes #13464
2017-03-06 14:53:32 +00:00
Mike Jolley
8440083fef
Merge pull request #13443 from woocommerce/cache-groups
...
Standardize cache group names
2017-03-03 10:44:34 +00:00
Mike Jolley
0a53e0e47f
Merge pull request #13444 from woocommerce/fix-13420
...
Set date paid for old orders
2017-03-03 10:41:33 +00:00
Mike Jolley
35eea95550
Set date paid for old order
2017-03-02 17:47:28 +00:00
Mike Jolley
1a8737fdeb
Standardize cache group names
2017-03-02 17:15:39 +00:00
Mike Jolley
fd07d06825
Update date created/modified if changed.
...
Fixes #13419
2017-03-02 16:46:59 +00:00
Mike Jolley
432ca28398
Update cart discount for old orders ( #13384 )
...
* Total discount bw compat handling
Fixes #13383
* if
2017-02-28 17:49:54 +00:00
Mike Jolley
41a4bdb181
Fix trashed variation cleanup
...
Fixes #13388
2017-02-28 15:38:11 +00:00
Mike Jolley
fd94ce74bc
Rogue exit in data store
2017-02-28 00:53:41 +00:00