mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Meta: Don't pass an empty $meta_key to get_metadata().
This doesn't break anything, but also isn't necessary. Props sc0ttkclark. See #35658. git-svn-id: https://develop.svn.wordpress.org/trunk@37996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4938acf349
commit
01bcc4d40b
@ -1239,7 +1239,7 @@ function get_registered_metadata( $object_type, $object_subtype, $object_id, $me
|
||||
return $data;
|
||||
}
|
||||
|
||||
$data = get_metadata( $object_type, $object_id, $meta_key );
|
||||
$data = get_metadata( $object_type, $object_id );
|
||||
|
||||
$meta_keys = get_registered_meta_keys( $object_type, $object_subtype );
|
||||
$registered_data = array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user