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
This commit is contained in:
parent
44c256e8d1
commit
857be1862b
|
@ -785,9 +785,10 @@ function page_attributes_meta_box($post) {
|
||||||
*
|
*
|
||||||
* @since 4.4.0
|
* @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 );
|
||||||
?></p>
|
?></p>
|
||||||
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue