From 7bfc537c54237c1e35a31e3ce23c50bc0cd25f22 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 3 Jan 2012 18:04:56 +0000 Subject: [PATCH] Remove esc_js() as this content now gets json encoded rather than a straight echo. props ocean90. see #19644, for trunk. git-svn-id: http://svn.automattic.com/wordpress/trunk@19655 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index f067eb0f98..7160ede9da 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1761,11 +1761,11 @@ final class WP_Internal_Pointers { } public static function pointer_wp330_toolbar() { - $content = '

' . esc_js( __( 'New Feature: Toolbar' ) ). '

'; - $content .= '

' . esc_js( __( 'We’ve combined the admin bar and the old Dashboard header into one persistent toolbar. Hover over the toolbar items to see what’s new.' ) ) . '

'; + $content = '

' . __( 'New Feature: Toolbar' ) . '

'; + $content .= '

' . __( 'We’ve combined the admin bar and the old Dashboard header into one persistent toolbar. Hover over the toolbar items to see what’s new.' ) . '

'; if ( is_multisite() && is_super_admin() ) - $content .= '

' .esc_js( __( 'Network Admin is now located in the My Sites menu.' ) ) . '

'; + $content .= '

' . __( 'Network Admin is now located in the My Sites menu.' ) . '

'; WP_Internal_Pointers::print_js( 'wp330_toolbar', '#wpadminbar', array( 'content' => $content, @@ -1779,8 +1779,8 @@ final class WP_Internal_Pointers { * @since 3.3.0 */ public static function pointer_wp330_media_uploader() { - $content = '

' . esc_js( __( 'Updated Media Uploader' ) ) . '

'; - $content .= '

' . esc_js( __( 'The single media icon now launches the uploader for all file types, and the new drag and drop interface makes uploading a breeze.' ) ) . '

'; + $content = '

' . __( 'Updated Media Uploader' ) . '

'; + $content .= '

' . __( 'The single media icon now launches the uploader for all file types, and the new drag and drop interface makes uploading a breeze.' ) . '

'; WP_Internal_Pointers::print_js( 'wp330_media_uploader', '#content-add_media', array( 'content' => $content, @@ -1794,8 +1794,8 @@ final class WP_Internal_Pointers { * @since 3.3.0 */ public static function pointer_wp330_saving_widgets() { - $content = '

' . esc_js( __( 'New Feature: Saving Widgets' ) ) . '

'; - $content .= '

' . esc_js( __( 'If you change your mind and revert to your previous theme, we’ll put the widgets back the way you had them.' ) ) . '

'; + $content = '

' . __( 'New Feature: Saving Widgets' ) . '

'; + $content .= '

' . __( 'If you change your mind and revert to your previous theme, we’ll put the widgets back the way you had them.' ). '

'; WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array( 'content' => $content,