Mike Jolley
dd1b8e35dc
API endpoints
2017-03-13 20:26:52 +00:00
Mike Jolley
1bac579df7
Date getters and setters
2017-03-13 19:52:44 +00: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
Mike Jolley
38f31d3b8e
Remove broken coupon usage link
...
#13568
2017-03-13 17:27:59 +00:00
Claudio Sanches
75ae465924
Merge pull request #13564 from ramiy/i18n
...
i18n: escape translation strings and fix wrong usage of i18n functions
2017-03-13 14:08:41 -03:00
Manos Psychogyiopoulos
1d5cd9409e
allow multiple galleries on page and init of dynamically loaded galleries
2017-03-13 18:58:39 +02:00
Claudiu Lodromanean
cf397cfbdd
Dont try and save inputs that arent there
2017-03-13 09:55:18 -07:00
Mike Jolley
19759a83b4
Merge pull request #13560 from JeroenSormani/php71-typecast-fix
...
Type cast ->get_weight() on WC_Cart::get_cart_contents_weight calcula…
2017-03-13 16:10:47 +00:00
Mike Jolley
e5c753e757
Merge pull request #13557 from woocommerce/fix-13526-admin
...
Keep date compatibility in WC_Ajax::get_customer_details()
2017-03-13 16:05:17 +00:00
Mike Jolley
d2bd1a422c
Merge pull request #13555 from woocommerce/fix-13526-rest-api
...
Update date usage in REST API v1 and v2
2017-03-13 16:04:38 +00:00
Mike Jolley
0098595339
Merge pull request #13554 from woocommerce/fix-13526-legacy-api
...
Fix dates in customer legacy endpoints
2017-03-13 15:59:02 +00:00
Mike Jolley
bee1d6f915
Merge pull request #13551 from woocommerce/orders-api-data
...
Revert order of items on Orders and Refunds endpoints
2017-03-13 15:58:13 +00:00
Rami Yushuvaev
d2457fe922
i18n: escape translation strings and fix wrong usage of i18n functions
2017-03-13 07:39:46 +02:00
Rami Yushuvaev
9382556534
Merge pull request #2 from woocommerce/master
...
update
2017-03-13 06:02:37 +02:00
JeroenSormani
91ce342e7c
Type cast ->get_weight() on WC_Cart::get_cart_contents_weight calculation
2017-03-11 19:01:58 +01:00
fuzzguard
1a99235dc8
Adding in proper error handling from 'lostpassword_post'
...
Since WP version 4.4.0 the 'lostpassword_post' hook has had the ability to handle error messages from the WP_Error class. This allows errors to to occur BEFORE the username or email address are validated against the WP.
wp-login.php
/**
* Fires before errors are returned from a password reset request.
*
* @since 2.1.0
* @since 4.4.0 Added the `$errors` parameter.
*
* @param WP_Error $errors A WP_Error object containing any errors generated
* by using invalid credentials.
*/
do_action( 'lostpassword_post', $errors );
if ( $errors->get_error_code() )
return $errors;
Proposal is to have this same process be respected by WooCommerce Lost Password process.
2017-03-11 11:43:21 +11:00
Claudio Sanches
98d26521d1
Keep date compatibility in WC_Ajax::get_customer_details()
2017-03-10 20:13:56 -03:00
Claudio Sanches
5b798332d2
Updated customer REST API unit tests
2017-03-10 19:51:33 -03:00
Claudio Sanches
3fbb8415d6
Change to single quotes
2017-03-10 19:14:28 -03:00
Claudio Sanches
8cefbd7c08
Added and fixed date properties for customers v2 endpoint
2017-03-10 19:10:41 -03:00
Claudio Sanches
7fb4340747
Updated dates for customers in REST API v1
2017-03-10 19:00:36 -03:00
Claudiu Lodromanean
1078c25971
Add task for running single test
2017-03-10 13:41:40 -08:00
Claudio Sanches
c6fa88bde8
Both $server-format_datetime() variables are false by default
2017-03-10 18:15:05 -03:00
Claudio Sanches
c353241599
Fixed dates in customer legacy endpoints
2017-03-10 18:10:03 -03:00
Claudio Sanches
0433af97fd
Merge pull request #13550 from woocommerce/fix-13547
...
Status transition hooks should never run when objects are read regardless of status being set.
2017-03-10 17:57:16 -03:00
Claudio Sanches
b36fea1ce5
[REST API] Use the same order as schema for refunds response
2017-03-10 17:26:36 -03:00
Claudio Sanches
65ed14635e
Change bback $item to $data
2017-03-10 17:22:38 -03:00
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