WordPress.org

Make WordPress Core

Changeset 14967


Ignore:
Timestamp:
05/27/10 00:16:34 (5 years ago)
Author:
nacin
Message:

Call the 'Attributes' meta box 'Page Attributes' for pages. Add some help text. fixes #13539.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r14961 r14967  
    124124 
    125125if ( post_type_supports($post_type, 'page-attributes') ) 
    126     add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core'); 
     126    add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core'); 
    127127 
    128128if ( current_theme_supports( 'post-thumbnails', $post_type ) && post_type_supports($post_type, 'thumbnail') ) 
     
    181181} elseif ( 'page' == $post_type ) { 
    182182    add_contextual_help($current_screen, '<p>' . __('Pages are similar to to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the "Parent" of the other, creating a group of Pages.') . '</p>' . 
    183     '<p>' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. The Page editor mostly works the same Post editor, but there are some Page-specific features in the Attributes box:') . '</p>' . 
     183    '<p>' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. The Page editor mostly works the same Post editor, but there are some Page-specific features in the Page Attributes box:') . '</p>' . 
    184184    '<p>' . __('<strong>Parent</strong> - You can arrange your pages in hierarchies. For example, you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how many levels you can nest pages.') . '</p>' . 
    185185    '<p>' . __('<strong>Template</strong> - Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you&#8217;ll see them in this dropdown menu.') . '</p>' . 
  • trunk/wp-admin/includes/meta-boxes.php

    r14938 r14967  
    538538        if ( ! empty($pages) ) { 
    539539?> 
    540 <h5><?php _e('Parent') ?></h5> 
     540<p><strong><?php _e('Parent') ?></strong></p> 
    541541<label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label> 
    542542<?php echo $pages; ?> 
     
    547547        $template = !empty($post->page_template) ? $post->page_template : false; 
    548548        ?> 
    549 <h5><?php _e('Template') ?></h5> 
     549<p><strong><?php _e('Template') ?></strong></p> 
    550550<label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> 
    551551<option value='default'><?php _e('Default Template'); ?></option> 
     
    554554<?php 
    555555    } ?> 
    556 <h5><?php _e('Order') ?></h5> 
     556<p><strong><?php _e('Order') ?></strong></p> 
    557557<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> 
     558<p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p> 
    558559<?php 
    559560} 
Note: See TracChangeset for help on using the changeset viewer.