WordPress.org

Make WordPress Core

Changeset 8757


Ignore:
Timestamp:
08/27/08 21:35:54 (6 years ago)
Author:
ryan
Message:

Use wp_dropdown_pages() insead of parent_dropdown()

File:
1 edited

Legend:

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

    r8752 r8757  
    196196?> 
    197197<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label> 
    198 <select name="parent_id" id="parent_id"> 
    199 <option value='0'><?php _e('Main Page (no parent)'); ?></option> 
    200 <?php parent_dropdown($post->post_parent); ?> 
    201 </select> 
     198<?php wp_dropdown_pages(array('selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'))); ?> 
    202199<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> 
    203200<?php 
Note: See TracChangeset for help on using the changeset viewer.