Make WordPress Core

Ticket #37415: 37415.patch

File 37415.patch, 440 bytes (added by vishalkakadiya, 9 years ago)
  • wp-includes/meta.php

    diff --git a/wp-includes/meta.php b/wp-includes/meta.php
    index cd684b6..f9b0b3d 100644
    a b function unregister_meta_key( $object_type, $meta_key ) { 
    11391139function get_registered_meta_keys( $object_type ) {
    11401140        global $wp_meta_keys;
    11411141
     1142        if ( ! is_array( $wp_meta_keys ) ) {
     1143                return array();
     1144        }
     1145
    11421146        if ( ! isset( $wp_meta_keys[ $object_type ] ) ) {
    11431147                return array();
    11441148        }