WordPress.org

Make WordPress Core

Changeset 49699


Ignore:
Timestamp:
11/26/2020 12:32:35 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Options, Meta APIs: Pass $meta_type to the get_{$meta_type}_metadata filter in metadata_exists().

This matches the main instance of the filter in get_metadata_raw().

Follow-up to [48505].

Props pbiron, jsmoriss, TimothyBlynJacobs.
Fixes #51866.

File:
1 edited

Legend:

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

    r49387 r49699  
    674674
    675675    /** This filter is documented in wp-includes/meta.php */
    676     $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
     676    $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true, $meta_type );
    677677    if ( null !== $check ) {
    678678        return (bool) $check;
Note: See TracChangeset for help on using the changeset viewer.