Ticket #33625: template_action.diff
File template_action.diff, 979 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/meta-boxes.php
789 789 if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) && get_option( 'page_for_posts' ) != $post->ID ) { 790 790 $template = !empty($post->page_template) ? $post->page_template : false; 791 791 ?> 792 <p><strong><?php _e('Template') ?></strong></p> 792 <p><strong><?php _e('Template') ?></strong><?php 793 /** 794 * Perform actions immediately after displaying the post editor Template metabox label. 795 * 796 * @since 4.4.0 797 * 798 * @param string $template The template used for the current post. 799 */ 800 do_action( 'meta_box_template_action', $template ); 801 ?></p> 793 802 <label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> 794 803 <?php 795 804 /**