From b13f38f6e37b55d4bac4cd834bce60b7bad80e94 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Dec 2008 18:03:24 +0000 Subject: [PATCH] Use wp_dropdown_page() git-svn-id: http://svn.automattic.com/wordpress/trunk@10069 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 13 ++++++------- wp-includes/post-template.php | 7 +++++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 24444befdc..b264e4ca3f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1046,13 +1046,12 @@ function inline_edit_row( $type ) { diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index bb1c0cebdd..de20d89c91 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -554,7 +554,8 @@ function wp_dropdown_pages($args = '') { $defaults = array( 'depth' => 0, 'child_of' => 0, 'selected' => 0, 'echo' => 1, - 'name' => 'page_id', 'show_option_none' => '' + 'name' => 'page_id', 'show_option_none' => '', 'show_option_no_change' => '', + 'option_none_value' => '' ); $r = wp_parse_args( $args, $defaults ); @@ -565,8 +566,10 @@ function wp_dropdown_pages($args = '') { if ( ! empty($pages) ) { $output = "\n"; }