From 738458cab69eab8c24170d246f2d2f8f688bcf29 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 22 Apr 2011 18:24:57 +0000 Subject: [PATCH] Apply esc_html properly in Walker_PageDropdown. fixes #17217. git-svn-id: https://develop.svn.wordpress.org/trunk@17683 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 aa03e9f72b..49b4b3ce28 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"; } }