From 91a448be74261c8abb324882613bd8e580fcb0ff Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 28 Oct 2011 22:40:09 +0000 Subject: [PATCH] Use esc_attr() consistently in wp_dropdown_pages(). git-svn-id: http://svn.automattic.com/wordpress/trunk@19081 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 0a9e70f7d2..b4e0c9ae35 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -778,13 +778,12 @@ function wp_dropdown_pages($args = '') { $pages = get_pages($r); $output = ''; - $name = esc_attr($name); // Back-compat with old system where both id and name were based on $name argument if ( empty($id) ) $id = $name; if ( ! empty($pages) ) { - $output = "\n"; if ( $show_option_no_change ) $output .= "\t"; if ( $show_option_none )