Use wp_dropdown_pages() insead of parent_dropdown()
git-svn-id: https://develop.svn.wordpress.org/trunk@8757 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bbb94f1d10
commit
de4dcecfab
@ -195,10 +195,7 @@ add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'norm
|
||||
function page_parent_meta_box($post){
|
||||
?>
|
||||
<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
|
||||
<select name="parent_id" id="parent_id">
|
||||
<option value='0'><?php _e('Main Page (no parent)'); ?></option>
|
||||
<?php parent_dropdown($post->post_parent); ?>
|
||||
</select>
|
||||
<?php wp_dropdown_pages(array('selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'))); ?>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user