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
This commit is contained in:
Helen Hou-Sandí 2015-11-23 17:15:29 +00:00
parent d04396d0ad
commit 2cdeac7cf6
2 changed files with 3 additions and 2 deletions

View File

@ -584,8 +584,9 @@ function meta_form( $post = null ) {
* @since 4.4.0 * @since 4.4.0
* *
* @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null. * @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 ) { if ( null === $keys ) {
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.