Bharat Kambariya
fdeadcdbea
fix param doc for update_meta and add_meta fn.
2018-06-21 11:47:18 +05:30
Mike Jolley
52a7fafd74
Search for matching keys when updating meta data
2018-06-11 12:50:49 +01:00
Gerhard Potgieter
42978bb031
PHPCS passing for abstract-wc-data.php
2018-03-05 13:29:18 +02:00
Mike Jolley
05e7eaae03
get_meta_data return array values
...
Closes #17997
2017-12-05 13:14:12 +00:00
The Dramatist
1783953f15
Admin metaboxes views translation escaping fix ( #17776 )
...
* Data escaped and validated. Plus translator comment documentation added.
* If it should be int then we should change the empty string default parameter to 0 as in 'if' condition checking 0 and empty string are same.
* Extra bracket removed.
* Indentation is fixed now.
* The taxonomy object should not be assigned to a variable before checking if this is a taxonomy or not.
* echo esc_attr__ replaced by esc_attr_e and visually tested.
* As I use WordPress VIP Coding Standard, they were marking them as warnings. But now it's fixed again.
* Escaping fix
* Extra Bracket Fix Again
2017-11-21 17:50:30 +00:00
Mike Jolley
e72a297842
Break up logic so is callable is only checked on internal meta keys
2017-10-27 16:23:05 +01:00
Cesar Rodas
32da25c4f1
Improved "is_internal_meta_key"
...
Improved is_internal_meta_key to check if the meta_key has a setter or a getter before returning TRUE and calling doing_it_wrong
2017-10-23 22:22:31 -03:00
Mike Jolley
39443d23e5
Fix meta data clone for products
2017-10-16 21:05:29 -07:00
Mike Jolley
240a321dd0
Revert get_meta_data changes and return array of WC_Meta_Data objects
2017-10-04 14:12:43 +01:00
Mike Jolley
7460189752
Handle WC_Meta_Data in get_data() and API
...
Fixes #17003
2017-10-02 13:12:33 +01:00
Brent Shepherd
81b9160973
Add offending key to error message
2017-09-15 15:58:34 -07:00
Brent Shepherd
f404affff4
Tweak internal meta notice
...
To remove ambiguity with accessing properties via $object->meta_key
syntax, which was deprecated with WC 3.0.
2017-09-15 15:48:53 -07:00
Mike Jolley
3778918a0a
Merge branch 'master' into pr/14751
...
# Conflicts:
# includes/class-wc-structured-data.php
2017-08-08 15:28:31 +01:00
Mike Jolley
f47bb39a06
Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
...
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Boro Sitnikovski
68d512ae01
Address PR comments
2017-06-08 13:00:28 +02:00
Boro Sitnikovski
0271a9e2fe
Update version
2017-06-07 16:20:09 +02:00
Boro Sitnikovski
00847da730
Fix
2017-06-07 12:33:05 +02:00
Boro Sitnikovski
1584836fa9
Code style fixes
2017-06-07 12:31:42 +02:00
Boro Sitnikovski
b5fd62274f
Map the correct function and use notice instead of exception
2017-06-07 12:30:03 +02:00
Boro Sitnikovski
efd42e6bc4
Proof of concept to error when internal meta props are accessed directly
2017-06-06 19:13:53 +02:00
Cesar Rodas
5997ffd4b1
Fixed coding styles issues
2017-06-01 11:46:05 -04:00
David de Boer
d788b15073
Set delete_meta_data @param to accept a string
...
Set delete_meta_data @param to accept a string
2017-06-01 01:47:52 +02:00
Mike Jolley
2366a036e3
Add id cache group to invalidate by ID
2017-05-30 14:37:29 +01:00
Cesar Rodas
b158ba2c47
Merge remote-tracking branch 'origin/master' into improve_meta_data_updates
2017-05-23 17:34:12 -04:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Claudio Sanches
84dfaf3c09
Merge pull request #14851 from franticpsyx/clone-meta-data
...
[3.0] Clone each meta stdClass object when cloning a WC_Data object
2017-05-03 18:03:54 -03:00
Manos Psychogyiopoulos
8f7671f066
Clone each meta object when cloning WC_Data object to avoid modifying original meta stdClass objects
2017-05-03 16:37:01 +03:00
Cesar Rodas
7a8011e878
Merge remote-tracking branch 'origin/master' into improve_meta_data_updates
2017-04-27 12:29:09 -04:00
Cesar Rodas
2e6dc17bd5
Improved update_meta_data function
...
Also updated unit tests that was expecting the meta data as stdclass objects
2017-04-27 09:28:19 -04:00
Cesar Rodas
91de312eb2
Make sure the meta data cache is not shared among instances
...
See #14620 for more context. In there I thought this was the desired behaviour and I enhanced it. After talking with @mikejolley he explained to me that it was not by designed.
This commit makes sure the meta data cache is not shared among instances
2017-04-26 13:51:52 -04:00
Cesar Rodas
6eb7dcabf2
Added WC_Meta_Data object
...
It wraps an array, and tells if there were any changes before saving it
2017-04-26 10:18:41 -04:00
Brent Shepherd
0e40d2c764
Don't return deleted meta
...
By using $this->get_meta_data() which passed meta through the
WC_Data::filter_null_meta() method, rather than $this->meta_data
which still has null values set.
2017-04-14 13:58:00 -07:00
Mike Jolley
76d962b606
since
2017-04-10 21:52:06 +01:00
Mike Jolley
e14d85d0a3
__clone meta correctly on object clone
...
Fixes #14118
2017-04-10 17:12:17 +01:00
Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Mike Jolley
0ad1f6a63f
Merge pull request #13709 from woocommerce/fix-13708
...
Timezone/DST fixes
2017-03-24 10:25:08 +00:00
Mike Jolley
ba07d53768
Remove guesswork from timezone handling so offsets work correctly regardless of DST
2017-03-23 00:11:15 +00:00
Mike Jolley
c4c8edee5f
Remove order and product factory cache
2017-03-21 23:37:38 +00:00
Mike Jolley
98f5ba44e8
Protection against removed objects.
2017-03-21 18:31:38 +00:00
Mike Jolley
991927c2d8
Handle sleep and wakeup in WC_Data class
2017-03-21 17:42:34 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03: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
a3cc5cc9bb
has_meta -> meta_exists
...
#13590
Avoid has_meta conflict with old method.
#13581
2017-03-14 16:49:13 +00:00
Mike Jolley
8f2746049d
has_meta method
2017-03-14 12:08:33 +00:00
Mike Jolley
02c826ba5e
Correctly handle null values
2017-03-13 22:14:20 +00:00
Mike Jolley
53962f1143
Other date_date call replacements
2017-03-10 16:43:05 +00:00
Claudiu Lodromanean
8a18702c27
Just use array_replace_recursive in apply_changes
2017-03-09 09:06:05 -08:00
Claudiu Lodromanean
3b8eb75c93
Better handling of nested arrays in apply_changes
2017-03-08 11:51:38 -08:00