From 740d8f1c1f42506e19a8790fd8a9a87b51fc7710 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 28 Feb 2006 06:11:59 +0000 Subject: [PATCH] Add name arg to wp_dropdown_pages(). git-svn-id: http://svn.automattic.com/wordpress/trunk@3575 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 9a1d59399d..01cd9726f5 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -344,14 +344,15 @@ function wp_dropdown_pages($args = '') { $r['echo'] = 1; if ( !isset($r['selected']) ) $r['selected'] = 0; - + if ( !isset($r['name']) ) + $r['name'] = 'page_id'; extract($r); $pages = get_pages($args); $output = ''; if ( ! empty($pages) ) { - $output = "\n"; $output .= walk_page_tree($pages, $depth, '_page_dropdown_element', '', '', '', $selected); $output .= "\n"; }