Make WordPress Core


Ignore:
Timestamp:
03/17/2014 07:39:31 PM (11 years ago)
Author:
nacin
Message:

Return false from metadata_exists() if the get_$type_metadata filter returns a false value.

props xknown.
fixes #22746.

File:
1 edited

Legend:

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

    r27191 r27562  
    324324    $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
    325325    if ( null !== $check )
    326         return true;
     326        return (bool) $check;
    327327
    328328    $meta_cache = wp_cache_get( $object_id, $meta_type . '_meta' );
Note: See TracChangeset for help on using the changeset viewer.