Make WordPress Core

Ticket #28654: 28654.5.diff

File 28654.5.diff, 8.8 KB (added by ocean90, 10 years ago)
  • src/wp-admin/plugin-install.php

     
    4545 */
    4646do_action( "install_plugins_pre_$tab" );
    4747
     48$overview  = '<p>' . __( 'Plugins hook into WordPress to extend its functionality with custom features. They are developed independently from the core WordPress application by thousands of developers all over the world.' ) . '</p>';
     49$overview .= '<p>' . sprintf( __( 'All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses.' ), 'https://wordpress.org/plugins/' ) . '</p>';
     50$overview .= '<p>' . __( 'You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.' ) . '</p>';
     51
    4852get_current_screen()->add_help_tab( array(
    49 'id'            => 'overview',
    50 'title'         => __('Overview'),
    51 'content'       =>
    52         '<p>' . sprintf(__('Plugins hook into WordPress to extend its functionality with custom features. Plugins are developed independently from the core WordPress application by thousands of developers all over the world. All plugins in the official <a href="%s" target="_blank">WordPress.org Plugin Directory</a> are compatible with the license WordPress uses. You can find new plugins to install by searching or browsing the Directory right here in your own Plugins section.'), 'https://wordpress.org/plugins/') . '</p>'
     53        'id'      => 'overview',
     54        'title'   => __('Overview'),
     55        'content' => $overview,
    5356) );
     57
     58$browsing_plugins  = '<p>' . __( 'If you know what plugin you&#8217;re looking for, using the Search Plugins box is your best bet. Or, if you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, and Newest plugins by using the links in the upper left of the screen. These sections rotate regularly.' ) . '</p>';
     59$browsing_plugins .= '<p>' . __( 'You can also browse a user&#8217;s favorite plugins, by using the Favorites link in the upper left of the screen and entering their WordPress.org username.' ) . '</p>';
     60if ( false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
     61        $browsing_plugins .= '<p>' . __( 'If you&#8217;re running the Beta Tester plugin or a development version of WordPress, the Beta Testing link in the upper left of the screen provides quick access to plugins you might find useful.' ) . '</p>';
     62}
     63
    5464get_current_screen()->add_help_tab( array(
    55 'id'            => 'adding-plugins',
    56 'title'         => __('Adding Plugins'),
    57 'content'       =>
    58         '<p>' . __('If you know what you&#8217;re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' .
    59         '<p>' . __('If you just want to get an idea of what&#8217;s available, you can browse Featured, Popular, and Newest plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>' .
    60         '<p>' . __('You can also browse a user&#8217;s favorite plugins, by using the Favorites link in the upper left of the screen and entering their WordPress.org username.') . '</p>' .
    61         '<p>' . __('If you want to install a plugin that you&#8217;ve downloaded elsewhere, click the Upload link in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>'
     65        'id'      => 'browsing-plugins',
     66        'title'   => __( 'Browsing Plugins' ),
     67        'content' => $browsing_plugins,
    6268) );
    6369
     70$adding_plugins  = '<p>' . __( 'There are a variety of ways to install plugins from within WordPress:' ) . '</p>';
     71$adding_plugins .= '<ul><li>' . __( '<strong>Click the Install Now button</strong> to install a plugin from the cards list.' ) . '</li>';
     72$adding_plugins .= '<li>' . __( '<strong>Click the More Details link</strong> in the upper right of a plugin card to launch a popup with extended information and reviews.' ) . '</li>';
     73$adding_plugins .= '<li>' . __( 'To install a plugin that you&#8217;ve downloaded elsewhere, <strong>click the Upload Plugin button</strong> in the upper left of the screen, then follow the directions to upload the plugin&#8217;s .zip file.' ) . '</li></ul>';
     74
     75get_current_screen()->add_help_tab( array(
     76        'id'      => 'adding-plugins',
     77        'title'   => __( 'Adding Plugins' ),
     78        'content' => $adding_plugins,
     79) );
     80
    6481get_current_screen()->set_help_sidebar(
    6582        '<p><strong>' . __('For more information:') . '</strong></p>' .
    6683        '<p>' . __('<a href="http://codex.wordpress.org/Plugins_Add_New_Screen" target="_blank">Documentation on Installing Plugins</a>') . '</p>' .
  • src/wp-admin/upload.php

     
    2929        ) );
    3030
    3131        get_current_screen()->add_help_tab( array(
    32                 'id'            => 'overview',
    33                 'title'         => __( 'Overview' ),
    34                 'content'       =>
    35                         '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>'
     32                'id'      => 'overview',
     33                'title'   => __( 'Overview' ),
     34                'content' =>
     35                        '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can narrow the list by file type/status or date using the filters at the top of the screen.' ) . '</p>' .
     36                        '<p>' . __( 'You can view media in a list view with columns or an endless media grid by toggling the grid or list icons at the top of the screen.' ) . '</p>'
    3637        ) );
    3738
     39        get_current_screen()->add_help_tab( array(
     40                'id'      => 'attachment-details',
     41                'title'   => __( 'Attachment Details' ),
     42                'content' =>
     43                        '<p>' . __( 'Clicking an item in the media grid will reveal an Attachment Details popup. In this popup, you&#8217;ll see a larger preview of the media item, meta information, and fields for editing the caption, title, description, and more. Any changes you make to the attachment details will be automatically saved.' ) . '</p>' .
     44                        '<p>' . __( 'Use the arrow buttons at the top of the popup, or the left and right arrow keys on your keyboard to navigate between between media items from the grid view.' ) . '</p>'
     45        ) );
     46
     47        get_current_screen()->add_help_tab( array(
     48                'id'      => 'deleting-media',
     49                'title'   => __( 'Deleting Media' ),
     50                'content' =>
     51                        '<p>' . __( 'To delete one or more media items, click the Bulk Select button at the top of the screen. Select any items you wish to delete, then click the Delete Selected button. Clicking the Cancel Selection button takes you back to the media grid screen.' ) . '</p>'
     52        ) );
     53
    3854        get_current_screen()->set_help_sidebar(
    3955                '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    4056                '<p>' . __( '<a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a>' ) . '</p>' .
     
    186202'id'            => 'overview',
    187203'title'         => __('Overview'),
    188204'content'       =>
    189         '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can use the Screen Options tab to customize the display of this screen.' ) . '</p>' .
    190         '<p>' . __( 'You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by date using the dropdown menu above the media table.' ) . '</p>'
     205        '<p>' . __( 'All the files you&#8217;ve uploaded are listed in the Media Library, with the most recent uploads listed first. You can narrow the list by file type/status or date using the filters at the top of the screen.' ) . '</p>' .
     206        '<p>' . __( 'You can view media in a list view with columns or an endless media grid by toggling the grid or list icons at the top of the screen.' ) . '</p>' .
     207        '<p>' . __( 'Use the Screen Options tab to customize the display of this screen, including which columns to show or hide and how many items to list per page.' ) . '</p>'
    191208) );
    192209get_current_screen()->add_help_tab( array(
    193210'id'            => 'actions-links',
     
    199216'id'            => 'attaching-files',
    200217'title'         => __('Attaching Files'),
    201218'content'       =>
    202         '<p>' . __( 'If a media file has not been attached to any post, you will see that in the Attached To column, and can click on Attach File to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>'
     219        '<p>' . __( 'If a media file has not been attached to any post, you will see that in the Uploaded To column, and can click on the Attach link to launch a small popup that will allow you to search for a post or page and attach the file.' ) . '</p>'
    203220) );
    204221
    205222get_current_screen()->set_help_sidebar(