mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
?></p>
|
||||
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user