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:
parent
d0e3670401
commit
87fa157bf8
@ -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 ) {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user