From 7351bce967960b480942f71af8d3ac08f0ce7155 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 10 Jun 2012 17:58:57 +0000 Subject: [PATCH] Escape editable_slug as a textarea. git-svn-id: http://core.svn.wordpress.org/trunk@21049 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index 75c49cd4de..c1a1d9f67d 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -190,6 +190,7 @@ add_filter( 'the_posts', '_close_comments_for_old_posts', 10, 2); add_filter( 'comments_open', '_close_comments_for_old_post', 10, 2 ); add_filter( 'pings_open', '_close_comments_for_old_post', 10, 2 ); add_filter( 'editable_slug', 'urldecode' ); +add_filter( 'editable_slug', 'esc_textarea' ); add_filter( 'nav_menu_meta_box_object', '_wp_nav_menu_meta_box_object' ); // Actions