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. Built from https://develop.svn.wordpress.org/trunk@49699 git-svn-id: http://core.svn.wordpress.org/trunk@49422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82d074fb0a
commit
f0b5757e35
|
@ -673,7 +673,7 @@ function metadata_exists( $meta_type, $object_id, $meta_key ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/meta.php */
|
/** This filter is documented in wp-includes/meta.php */
|
||||||
$check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
|
$check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true, $meta_type );
|
||||||
if ( null !== $check ) {
|
if ( null !== $check ) {
|
||||||
return (bool) $check;
|
return (bool) $check;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.7-alpha-49698';
|
$wp_version = '5.7-alpha-49699';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue