From ae3472b2a2c53e71ea0d70fb9ca227eaf4b75d18 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 27 Nov 2012 18:58:07 +0000 Subject: [PATCH] Feature pointers: * Finalize the text for the media pointer. Offer it for translation. * Remove the favorites pointer. fixes #22454. git-svn-id: https://develop.svn.wordpress.org/trunk@22874 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e60313d823..ff1dd1a81e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1674,7 +1674,6 @@ final class WP_Internal_Pointers { 'themes.php' => array( 'wp330_saving_widgets', 'wp340_customize_current_theme_link' ), 'appearance_page_custom-header' => 'wp340_choose_image_from_library', 'appearance_page_custom-background' => 'wp340_choose_image_from_library', - 'plugin-install.php' => 'wp350_favorites', ); // Check if screen related pointer is registered @@ -1828,8 +1827,8 @@ final class WP_Internal_Pointers { } public static function pointer_wp350_media() { - $content = '

' . ( 'New Media Uploader' ) . '

'; - $content .= '

' . ( 'Uploading and inserting images and other files has never been easier.' ) . '

'; + $content = '

' . __( 'New Media Manager' ) . '

'; + $content .= '

' . __( 'Uploading files and creating image galleries has a whole new look. Check it out!' ) . '

'; self::print_js( 'wp350_media', '.insert-media', array( 'content' => $content, @@ -1837,23 +1836,13 @@ final class WP_Internal_Pointers { ) ); } - public static function pointer_wp350_favorites() { - $content = '

' . __( 'New Feature: Plugin Favorites' ) . '

'; - $content .= '

' . __( 'If you have favorited plugins on WordPress.org, you can now install them directly from this tab.' ) . '

'; - - self::print_js( 'wp350_favorites', '.plugin-install-favorites', array( - 'content' => $content, - 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left', 'offset' => is_rtl() ? '40 0' : '-40 0' ), - ) ); - } - /** * Prevents new users from seeing existing 'new feature' pointers. * * @since 3.3.0 */ public static function dismiss_pointers_for_new_users( $user_id ) { - add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media,wp350_favorites' ); + add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media' ); } }