WordPress.org

Make WordPress Core

Changeset 14938


Ignore:
Timestamp:
05/26/10 07:14:42 (5 years ago)
Author:
nacin
Message:

In the page attributes box, generalize the screen reader text, also remove the help text which is now in the 'Help' tab. see #13539. subject to final UX review.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r14933 r14938  
    535535    $post_type_object = get_post_type_object($post->post_type); 
    536536    if ( $post_type_object->hierarchical ) { 
    537         $pages = wp_dropdown_pages(array('post_type' => $post->post_type, 'exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title', 'echo' => 0)); 
     537        $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)); 
    538538        if ( ! empty($pages) ) { 
    539539?> 
    540540<h5><?php _e('Parent') ?></h5> 
    541 <label class="screen-reader-text" for="parent_id"><?php _e('Page Parent') ?></label> 
     541<label class="screen-reader-text" for="parent_id"><?php _e('Parent') ?></label> 
    542542<?php echo $pages; ?> 
    543 <p><?php _e('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 deeply nested you can make pages.'); ?></p> 
    544543<?php 
    545544        } // end empty pages check 
     
    553552<?php page_template_dropdown($template); ?> 
    554553</select> 
    555 <p><?php _e('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 above.'); ?></p> 
    556554<?php 
    557555    } ?> 
    558556<h5><?php _e('Order') ?></h5> 
    559 <p><label class="screen-reader-text" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p> 
    560 <p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in.'); ?></p> 
     557<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> 
    561558<?php 
    562559} 
Note: See TracChangeset for help on using the changeset viewer.