Pass the current post object to 'page_attributes_meta_box_template' action added in [34340].

Props DrewAPicture.
Fixes #33625.
Built from https://develop.svn.wordpress.org/trunk@34350


git-svn-id: http://core.svn.wordpress.org/trunk@34314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-20 08:15:28 +00:00
parent 292243944f
commit d63bb56030
2 changed files with 4 additions and 3 deletions

View File

@ -786,8 +786,9 @@ 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

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34349'; $wp_version = '4.4-alpha-34350';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.