Tweak internal meta notice
To remove ambiguity with accessing properties via $object->meta_key syntax, which was deprecated with WC 3.0.
This commit is contained in:
parent
83f60c68ab
commit
f404affff4
|
@ -277,7 +277,7 @@ abstract class WC_Data {
|
|||
*/
|
||||
protected function is_internal_meta_key( $key ) {
|
||||
if ( $this->data_store && ! empty( $key ) && in_array( $key, $this->data_store->get_internal_meta_keys() ) ) {
|
||||
wc_doing_it_wrong( __FUNCTION__, __( 'Meta properties should not be accessed directly. Use getters and setters.', 'woocommerce' ), '3.2.0' );
|
||||
wc_doing_it_wrong( __FUNCTION__, __( 'Generic add/update/get meta methods should not be used for internal meta data. Use getters and setters.', 'woocommerce' ), '3.2.0' );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue