Merge pull request #16835 from thenbrent/tweak_internal_meta_message

Tweak internal meta notice
This commit is contained in:
Mike Jolley 2017-09-20 03:39:56 -07:00 committed by GitHub
commit 04ba489628
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__, sprintf( __( 'Generic add/update/get meta methods should not be used for internal meta data, including "%s". Use getters and setters.', 'woocommerce' ), $key ), '3.2.0' );
return true;
}