From 857be1862b16d71f91e655810113316e174091fe Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Sep 2015 08:14:40 +0000 Subject: [PATCH] Pass the current post object to `'page_attributes_meta_box_template'` action added in [34340]. Props DrewAPicture. Fixes #33625. git-svn-id: https://develop.svn.wordpress.org/trunk@34350 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 84aeb734b1..670e02b5b3 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -785,9 +785,10 @@ function page_attributes_meta_box($post) { * * @since 4.4.0 * - * @param string $template The template used for the current post. + * @param string $template The template used for the current post. + * @param WP_Post $post The current post. */ - do_action( 'page_attributes_meta_box_template', $template ); + do_action( 'page_attributes_meta_box_template', $template, $post ); ?>