Make WordPress Core

Ticket #58246: 58246.diff

File 58246.diff, 487 bytes (added by donglijun, 2 years ago)
  • src/wp-includes/meta.php

    diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
    index 6b361aaa5e..c2ba1eb172 100644
    a b function update_meta_cache( $meta_type, $object_ids ) { 
    11461146         */
    11471147        $check = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids );
    11481148        if ( null !== $check ) {
    1149                 return (bool) $check;
     1149                return is_array( $check ) ? $check : (bool) $check;
    11501150        }
    11511151
    11521152        $cache_key      = $meta_type . '_meta';