Call the 'Attributes' meta box 'Page Attributes' for pages. Add some help text. fixes #13539.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -537,7 +537,7 @@ function page_attributes_meta_box($post) {
|
||||
$pages = wp_dropdown_pages(array('post_type' => $post->post_type, 'exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('(no parent)'), 'sort_column'=> 'menu_order, post_title', 'echo' => 0));
|
||||
if ( ! empty($pages) ) {
|
||||
?>
|
||||
<h5><?php _e('Parent') ?></h5>
|
||||
<p><strong><?php _e('Parent') ?></strong></p>
|
||||
<label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label>
|
||||
<?php echo $pages; ?>
|
||||
<?php
|
||||
@@ -546,15 +546,16 @@ function page_attributes_meta_box($post) {
|
||||
if ( 'page' == $post->post_type && 0 != count( get_page_templates() ) ) {
|
||||
$template = !empty($post->page_template) ? $post->page_template : false;
|
||||
?>
|
||||
<h5><?php _e('Template') ?></h5>
|
||||
<p><strong><?php _e('Template') ?></strong></p>
|
||||
<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
|
||||
<option value='default'><?php _e('Default Template'); ?></option>
|
||||
<?php page_template_dropdown($template); ?>
|
||||
</select>
|
||||
<?php
|
||||
} ?>
|
||||
<h5><?php _e('Order') ?></h5>
|
||||
<p><strong><?php _e('Order') ?></strong></p>
|
||||
<p><label class="screen-reader-text" for="menu_order"><?php _e('Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p>
|
||||
<p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user