Make WordPress Core

Ticket #58249: 58249.diff

File 58249.diff, 595 bytes (added by donglijun, 17 months ago)
  • src/wp-includes/meta.php

    diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
    index 6b361aaa5e..b32a608a16 100644
    a b function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal 
    632632         */
    633633        $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single, $meta_type );
    634634        if ( null !== $check ) {
    635                 if ( $single && is_array( $check ) ) {
    636                         return $check[0];
    637                 } else {
    638                         return $check;
    639                 }
     635                return $check;
    640636        }
    641637
    642638        $meta_cache = wp_cache_get( $object_id, $meta_type . '_meta' );