WordPress.org

Make WordPress Core

Ticket #22746: meta.diff

File meta.diff, 421 bytes (added by xknown, 5 years ago)

Return $check instead of true.

  • wp-includes/meta.php

     
    321321
    322322        $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
    323323        if ( null !== $check )
    324                 return true;
     324                return $check;
    325325
    326326        $meta_cache = wp_cache_get( $object_id, $meta_type . '_meta' );
    327327