WordPress.org

Make WordPress Core

Changeset 38108


Ignore:
Timestamp:
07/19/2016 09:58:15 PM (4 years ago)
Author:
jeremyfelt
Message:

Meta: Ensure $wp_meta_keys is an array in get_registered_meta_keys().

Props vishalkakadiya.
Fixes #37415, See #35658.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r38095 r38108  
    11401140    global $wp_meta_keys;
    11411141
    1142     if ( ! isset( $wp_meta_keys[ $object_type ] ) ) {
     1142    if ( ! is_array( $wp_meta_keys ) || ! isset( $wp_meta_keys[ $object_type ] ) ) {
    11431143        return array();
    11441144    }
Note: See TracChangeset for help on using the changeset viewer.