Claudio Sanches
4ea40d997b
[REST API] Improved order of items in Orders endpoint schema
2017-03-10 17:20:27 -03:00
Mike Jolley
ff4b79a6fc
Status transition hooks should never run when objects are read regardless of status being set.
...
Fixes #13547
2017-03-10 20:20:07 +00:00
Claudio Sanches
cf1ae98011
Merge pull request #13549 from woocommerce/order-date-functions
...
Order date functions
2017-03-10 16:40:40 -03:00
Mike Jolley
aac2e6a39c
Refund schema
2017-03-10 19:30:07 +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
e6752932dd
Sort
2017-03-10 19:05:32 +00:00
Mike Jolley
2c59a6a86f
Fix test
2017-03-10 18:59:55 +00:00
Mike Jolley
f8d5d9dc1c
Merge pull request #13543 from woocommerce/tests-13533
...
Tests for #13533
2017-03-10 18:56:06 +00:00
Mike Jolley
61484ed711
Update API endpoints
2017-03-10 18:54:59 +00:00
Claudiu Lodromanean
73ed273189
Use active voice
2017-03-10 10:32:27 -08:00
Claudiu Lodromanean
d630b948e3
Better increase/decreasing
2017-03-10 10:28:56 -08:00
Claudiu Lodromanean
e6a17a0fb3
Dont use set_prop on increase/decrease to prevent overwriting data
2017-03-10 09:27:39 -08:00
Claudiu Lodromanean
d70723553d
CHange vary to update
2017-03-10 09:18:14 -08:00
Mike Jolley
53962f1143
Other date_date call replacements
2017-03-10 16:43:05 +00:00
Mike Jolley
8ab839a030
Replace template usage of dates
2017-03-10 16:35:47 +00:00
Mike Jolley
84a1f0f92b
wc_rest_prepare_date_response handling for WC_DateTime
2017-03-10 16:30:32 +00:00
Mike Jolley
8e169ede98
Legacy handling
2017-03-10 16:30:06 +00:00
Mike Jolley
339b1b7aab
Set dates based on UTC
2017-03-10 16:29:52 +00:00
Mike Jolley
804573028d
wc_format_datetime function
2017-03-10 16:29:42 +00:00
Mike Jolley
05e6c506ce
Email dates
2017-03-10 16:29:15 +00:00
Mike Jolley
69cc8f5150
API dates
2017-03-10 16:28:50 +00:00
Mike Jolley
3b9f753393
Merge pull request #13545 from kouratoras/patch-1
...
Add missing trailing punctuation
2017-03-10 15:26:51 +00:00
Konstantinos Kouratoras
f77b03ef94
Add missing trailing punctuation
...
Trailing punctuation is missing, causing duplication of the same text in translation, although it exists in another file:
https://github.com/woocommerce/woocommerce/blob/master/includes/api/class-wc-rest-settings-options-controller.php#L482
2017-03-10 17:01:47 +02:00
Mike Jolley
6ec06ef0db
Update tests
2017-03-10 14:52:41 +00: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
Mike Jolley
89fab41440
date_{paid|completed} getters and setters.
2017-03-10 14:25:40 +00:00
Mike Jolley
320cf818a5
Merge pull request #13539 from woocommerce/uses-gmdate-customer-last-update
...
Use GMT/UTC+0 when update customer last_update
2017-03-10 12:24:02 +00:00
Mike Jolley
66e8d9b054
Merge pull request #13530 from woocommerce/alt-fix-13496
...
Avoid filters during construct
2017-03-10 12:22:22 +00:00
Mike Jolley
2894d5aab0
Make needs_processing public so the data store can access.
2017-03-10 12:21:42 +00:00
Mike Jolley
90b588be18
Merge branch 'master' into tests-13533
2017-03-10 12:01:41 +00:00
Mike Jolley
e2552c0a8c
Unit tests
2017-03-10 12:01:40 +00:00
Mike Jolley
2da794d817
Merge branch 'master' into tests-13533
2017-03-10 11:47:39 +00:00
Mike Jolley
4f1c433fbf
Merge pull request #13532 from woocommerce/fix/order-item-meta-cache
...
Fix order item meta functions cache busting.
2017-03-10 11:47:26 +00:00
Mike Jolley
c162415fac
Merge pull request #13538 from woocommerce/customers-created-modified-date
...
Apply WC_DateTime to WC_Customer
2017-03-10 10:48:46 +00:00
Mike Jolley
58e4e318b0
Merge pull request #13537 from woocommerce/fix-13534
...
Use WordPress wp_get_password_hint() function to display passowd hint
2017-03-10 10:43:23 +00:00
Claudio Sanches
dbbe4617ee
Do not force integer since will be saved as string by WordPress
2017-03-10 01:58:57 -03:00
Claudio Sanches
948963f5c7
Uses GMT/UTC+0 when update customer lastt_update
2017-03-10 01:57:53 -03:00
Claudio Sanches
23b575aebe
Fixed customer CRUD unit tests
2017-03-10 01:53:06 -03:00
Claudio Sanches
4f1577fb27
Added support new WC_DateTime in WC_Customer
2017-03-10 01:20:33 -03:00
Claudio Sanches
377fbf9c44
Use WordPress wp_get_password_hint() function to display passowd hint
...
Closes #13534
2017-03-10 00:48:19 -03:00
Justin Shreve
9724b67ab8
Fix order item meta functions cache busting.
...
The cache busting currently in `wc_add_order_item_meta`, `wc_update_order_item_meta`, and `wc_delete_order_item_meta` doesn't actually bust anything. The cache line looks like it is from 2.6. The relevent cache to bust is actually in the `order-items` group and has a different key/prefix.
This bug allows your meta to get out of sync if you use these functions and then try to access a value from a CRUD object.
You can see this in the `test_wc_order_item_meta_functions` test I've added. If you keep your `wc-order-item-functions.php` as is, the asserts against `$item->get_meta` will fail.
To test:
* `phpunit --filter=test_wc_order_item_meta_functions`.
* Try before applying the `wc-order-item-functions.php` changes and after.
2017-03-09 13:36:23 -08:00
Claudiu Lodromanean
6b959e8625
Merge pull request #13531 from woocommerce/fix/legacy-coupon-amount-property
...
Fix direct property access for coupon amount.
2017-03-09 11:47:36 -08:00
Justin Shreve
cd92351dd7
Fix direct property access for coupon amount.
...
In 2.6, you could access the amount via $coupon->coupon_amount. Or legacy code incorrectly handles $coupon->amount instead. 7778583340/includes/class-wc-coupon.php (L102)
This PR handles both since the RCs and betas allowed `->amount` and I don't want to break anything that may be accessing it that way..
To Test:
* `phpunit --filter=test_coupon_backwards_compat_props_use_correct_getters`
2017-03-09 10:34:45 -08:00
Mike Jolley
99776e6374
Merge pull request #13514 from woocommerce/fix-13509
...
Apply_changes nested array fix and tests
2017-03-09 17:32:19 +00:00
Claudiu Lodromanean
8a18702c27
Just use array_replace_recursive in apply_changes
2017-03-09 09:06:05 -08: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
ac1c2f02b7
syntax
2017-03-09 14:53:52 +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