From 8a0d83bebe2b33a4199939e2942734fa9b4a2562 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 22 Apr 2011 18:24:57 +0000 Subject: [PATCH] Apply esc_html properly in Walker_PageDropdown. fixes #17217. git-svn-id: http://svn.automattic.com/wordpress/trunk@17683 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 aa03e9f72..49b4b3ce2 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1100,9 +1100,8 @@ class Walker_PageDropdown extends Walker { if ( $page->ID == $args['selected'] ) $output .= ' selected="selected"'; $output .= '>'; - $title = esc_html($page->post_title); $title = apply_filters( 'list_pages', $page->post_title ); - $output .= "$pad$title"; + $output .= $pad . esc_html( $title ); $output .= "\n"; } }