From f0b5757e35ce5217deee077241f9b869a4e81465 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Nov 2020 12:34:06 +0000 Subject: [PATCH] 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 --- wp-includes/meta.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index fe144fcda6..3bce8281e3 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -673,7 +673,7 @@ function metadata_exists( $meta_type, $object_id, $meta_key ) { } /** 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 ) { return (bool) $check; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8f31b3d7f6..0d4ececc97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.