From 2cdeac7cf6da2a23fe2420dda2e710a8fdec624d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Mon, 23 Nov 2015 17:15:29 +0000 Subject: [PATCH] Pass the `$post` object as context to `postmeta_form_keys`. see #33885, #18979. Built from https://develop.svn.wordpress.org/trunk@35730 git-svn-id: http://core.svn.wordpress.org/trunk@35694 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index bcdecbee3a..729b82b772 100644 --- a/wp-admin/includes/template.php +++ b/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 ) { /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 424992ef53..67647fd73c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35729'; +$wp_version = '4.4-beta4-35730'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.