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:
Brent Shepherd 2017-09-15 15:48:53 -07:00
parent 83f60c68ab
commit f404affff4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}