From b0ade9507e72c21c7645cad34d478ae11f273dcc Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Tue, 24 Nov 2020 09:26:59 -0700
Subject: [PATCH] Pass `$meta_type` as the 5th param when
 `get_{$meta_type}_metadata` is applied in `metadata_exists()`.

---
 src/wp-includes/meta.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
index fe144fcda6..3bce8281e3 100644
--- a/src/wp-includes/meta.php
+++ b/src/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;
 	}
-- 
2.28.0.windows.1

