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
This commit is contained in:
Helen Hou-Sandi 2015-11-23 17:14:39 +00:00
parent d0e3670401
commit 87fa157bf8

View File

@ -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 ) {
/**