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
|
b
|
function metadata_exists( $meta_type, $object_id, $meta_key ) { |
| 673 | 673 | } |
| 674 | 674 | |
| 675 | 675 | /** 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 ); |
| 677 | 677 | if ( null !== $check ) { |
| 678 | 678 | return (bool) $check; |
| 679 | 679 | } |