Mike Jolley
543fc31d81
Fix filter and unit test
...
#11771
2016-08-25 10:45:50 +01:00
Mike Jolley
95db2f26cd
Set meta to 'null' to delete it during save.
...
Fixes #11771
2016-08-25 10:32:42 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
7e30e8dda3
Set defaults and handle order reads without exceptions
2016-08-24 12:34:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
e08e5a816d
2d array handling
2016-08-23 15:49:34 +01:00
Mike Jolley
3e3e35d50d
Add set prop/get prop helper, error handler, and validation to item product class
2016-08-23 14:58:44 +01:00
Mike Jolley
74c96e305b
Error method
2016-08-23 13:43:26 +01:00
Claudio Sanches
7a0c5bc19b
REST API expect meta data ID as an integer value
...
cc @mikejolley
2016-08-22 16:59:03 -03:00
Claudio Sanches
38e1be71eb
ID first for all elements in the REST API
...
cc @mikejolley
2016-08-22 16:58:34 -03:00
Mike Jolley
39f4a1cdca
Swaps meta_id for id across crud and api
2016-08-22 19:37:34 +01:00
Mike Jolley
21ad196297
Use CRUD in wc_save_order_items
2016-08-19 13:43:33 +01:00
Mike Jolley
0b9a5998cc
Exception class
2016-08-17 11:44:56 +01:00
Mike Jolley
c7ae2c31ea
leave wp meta alone and handle serialisation
2016-08-15 17:37:18 +01:00
Mike Jolley
83dca89d0c
Correct customer escaping and tests
2016-08-15 16:53:48 +01:00
Mike Jolley
e1318d9175
Stop WP core meta data being removed for customers
...
@justinshreve
2016-08-15 13:17:43 +01:00
Mike Jolley
eec9ce5b41
Revert addition of _delete_extra_meta_data
...
This essentially removes the ability to delete meta which is not great.
@justinshreve you added this in
https://github.com/woothemes/woocommerce/commit/e3b1f6dbc9558bae606fa76e
6941175582a301b7 - can you tell me what problems it was causing you so
we can add a different fix if needed?
2016-08-12 16:41:06 +01:00
Justin Shreve
e3b1f6dbc9
A few fixes to customer CRUD:
...
* Implement some missing legacy functions
* Stop calling legacy functions from some pages
* Prevent extra meta from being deleted, unless requested by the CRUD (was causing problems with user/customer)
* Prevent save when loading from session AND logged out
2016-08-04 13:13:07 -07:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Mike Jolley
77eca1da3f
docblock fix
2016-06-07 11:06:41 +01:00
Mike Jolley
119b53c383
fix comments
2016-06-06 19:52:51 +01:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Justin Shreve
705213d4f5
Move meta_id into the _meta_data array instead of trying to use them as array keys.
...
This is so we can just use PHP's keys, instead of trying to add new meta and guess an avaible key.
2016-03-18 12:24:35 -07:00
Justin Shreve
f65c9305bf
Update WC_Coupon to use the new WC_Data class and meta methods.
2016-03-17 09:38:56 -07:00
Mike Jolley
6765967be8
Add data and tostring handling to WC_Data
2016-03-17 15:22:29 +00:00
Justin Shreve
a51e164fd7
Set versions to 2.6
2016-03-15 15:44:04 -07:00
Justin Shreve
9aff45e154
Feedback
2016-03-15 15:11:07 -07:00
Justin Shreve
5d6cdd05f1
Finish out tests, make sure to use cprrect meta ID field in order by clause.
2016-03-14 11:12:47 -07:00
Justin Shreve
97c0edf445
Start on tests for testing CRUD meta.
...
Includes Mock object for testing against the abstract WC_Data.
2016-03-14 11:12:47 -07:00
Justin Shreve
f572a887e0
New Abstract WC_Data Class
2016-03-14 11:12:47 -07:00