Make WordPress Core


Ignore:
Timestamp:
11/27/2012 06:58:07 PM (12 years ago)
Author:
nacin
Message:

Feature pointers:

  • Finalize the text for the media pointer. Offer it for translation.
  • Remove the favorites pointer.

fixes #22454.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r22815 r22874  
    16751675            'appearance_page_custom-header' => 'wp340_choose_image_from_library',
    16761676            'appearance_page_custom-background' => 'wp340_choose_image_from_library',
    1677             'plugin-install.php' => 'wp350_favorites',
    16781677        );
    16791678
     
    18291828
    18301829    public static function pointer_wp350_media() {
    1831         $content  = '<h3>' . ( 'New Media Uploader' ) . '</h3>';
    1832         $content .= '<p>' . ( 'Uploading and inserting images and other files has never been easier.' ) . '</p>';
     1830        $content  = '<h3>' . __( 'New Media Manager' ) . '</h3>';
     1831        $content .= '<p>' . __( 'Uploading files and creating image galleries has a whole new look. Check it out!' ) . '</p>';
    18331832
    18341833        self::print_js( 'wp350_media', '.insert-media', array(
    18351834            'content'  => $content,
    18361835            'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => 'center' ),
    1837         ) );
    1838     }
    1839 
    1840     public static function pointer_wp350_favorites() {
    1841         $content  = '<h3>' . __( 'New Feature: Plugin Favorites' ) . '</h3>';
    1842         $content .= '<p>' . __( 'If you have favorited plugins on WordPress.org, you can now install them directly from this tab.' ) . '</p>';
    1843 
    1844         self::print_js( 'wp350_favorites', '.plugin-install-favorites', array(
    1845             'content'  => $content,
    1846             'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left', 'offset' => is_rtl() ? '40 0' : '-40 0' ),
    18471836        ) );
    18481837    }
     
    18541843     */
    18551844    public static function dismiss_pointers_for_new_users( $user_id ) {
    1856         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' );
     1845        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' );
    18571846    }
    18581847}
Note: See TracChangeset for help on using the changeset viewer.