mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01: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. Built from https://develop.svn.wordpress.org/trunk@37996 git-svn-id: http://core.svn.wordpress.org/trunk@37937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c243edf41a
commit
b69192f9ec
@ -1239,7 +1239,7 @@ function get_registered_metadata( $object_type, $object_subtype, $object_id, $me
|
|||||||
return $data;
|
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 );
|
$meta_keys = get_registered_meta_keys( $object_type, $object_subtype );
|
||||||
$registered_data = array();
|
$registered_data = array();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta2-37995';
|
$wp_version = '4.6-beta2-37996';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user