From 87fa157bf896b67e6c4b4a8edfc997e5d93bc989 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Mon, 23 Nov 2015 17:14:39 +0000 Subject: [PATCH] Pass the `$post` object as context to `postmeta_form_keys`. see #33885, #18979. git-svn-id: https://develop.svn.wordpress.org/trunk@35730 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index bcdecbee3a..729b82b772 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -584,8 +584,9 @@ function meta_form( $post = null ) { * @since 4.4.0 * * @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null. + * @param WP_Post $post The current post object. */ - $keys = apply_filters( 'postmeta_form_keys', null ); + $keys = apply_filters( 'postmeta_form_keys', null, $post ); if ( null === $keys ) { /**