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:
parent
292243944f
commit
d63bb56030
|
@ -786,8 +786,9 @@ function page_attributes_meta_box($post) {
|
|||
* @since 4.4.0
|
||||
*
|
||||
* @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
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue