mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Meta: Ensure $wp_meta_keys
is an array in get_registered_meta_keys()
.
Props vishalkakadiya. Fixes #37415, See #35658. Built from https://develop.svn.wordpress.org/trunk@38108 git-svn-id: http://core.svn.wordpress.org/trunk@38049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
949bc7c7e3
commit
65ffc1ff42
@ -1139,7 +1139,7 @@ function unregister_meta_key( $object_type, $meta_key ) {
|
|||||||
function get_registered_meta_keys( $object_type ) {
|
function get_registered_meta_keys( $object_type ) {
|
||||||
global $wp_meta_keys;
|
global $wp_meta_keys;
|
||||||
|
|
||||||
if ( ! isset( $wp_meta_keys[ $object_type ] ) ) {
|
if ( ! is_array( $wp_meta_keys ) || ! isset( $wp_meta_keys[ $object_type ] ) ) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-beta3-38107';
|
$wp_version = '4.6-beta3-38108';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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