Changeset 13778
- Timestamp:
- 03/20/2010 02:46:31 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/meta-boxes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/meta-boxes.php
r13777 r13778 513 513 */ 514 514 function page_attributes_meta_box($post) { 515 $post_type_object = get_post_type_object($post->post_type); 516 if ( $post_type_object->hierarchical ) { 515 517 ?> 516 518 <h5><?php _e('Parent') ?></h5> 517 519 <label class="screen-reader-text" for="parent_id"><?php _e('Page Parent') ?></label> 518 <?php wp_dropdown_pages(array(' exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>520 <?php 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')); ?> 519 521 <p><?php _e('You can arrange your pages in hierarchies. For example, you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p> 520 522 <?php 523 } // end hierarchical check. 521 524 if ( 0 != count( get_page_templates() ) ) { 522 525 $template = !empty($post->page_template) ? $post->page_template : false;
Note: See TracChangeset
for help on using the changeset viewer.