Make WordPress Core

Ticket #28654: 28654.3.diff

File 28654.3.diff, 11.7 KB (added by DrewAPicture, 10 years ago)

split to separate sections

  • src/wp-admin/edit-form-advanced.php

     
    319319}
    320320
    321321if ( 'post' == $post_type || 'page' == $post_type ) {
    322         $inserting_media = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) by clicking the Add Media button. You can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post. To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>';
     322        $inserting_media  = '<p>' . __( 'You can upload and insert media (images, audio, documents, etc.) either by clicking the Add Media button, or by dragging and dropping media directly into the editor. From the Insert Media popup, you can select from the images and files already uploaded to the Media Library, or upload new media to add to your page or post.' ) . '</p>';
     323        $inserting_media .= '<p>' . __( 'To create an image gallery, select the images to add and click the &#8220;Create a new gallery&#8221; button.' ) . '</p>';
    323324        $inserting_media .= '<p>' . __( 'You can also embed media from many popular websites including Twitter, YouTube, Flickr and others by pasting the media URL on its own line into the content of your post/page. Please refer to the Codex to <a href="http://codex.wordpress.org/Embeds">learn more about embeds</a>.' ) . '</p>';
    324325
    325326        get_current_screen()->add_help_tab( array(
  • src/wp-admin/edit.php

     
    189189                        '<li>' . __('<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.') . '</li>' .
    190190                        '<li>' . __('<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.') . '</li>' .
    191191                        '<li>' . __('<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.') . '</li>' .
    192                         '<li>' . __('<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.') . '</li>' .
     192                        '<li>' . __('<strong>View/Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' .
    193193                '</ul>'
    194194        ) );
    195195        get_current_screen()->add_help_tab( array(
  • 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>';
     60$browsing_plugins .= '<p>' . __( '' ) . '</p>';
     61if ( false !== strpos( $GLOBALS['wp_version'], '-' ) ) {
     62        $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>';
     63}
     64
    5465get_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>'
     66        'id'      => 'browsing-plugins',
     67        'title'   => __( 'Browsing Plugins' ),
     68        'content' => $browsing_plugins,
    6269) );
    6370
     71$adding_plugins  = '<p>' . __( 'There are a variety of ways to install plugins from within WordPress:' ) . '</p>';
     72$adding_plugins .= '<ul><li>' . __( '<strong>Click the Install Now button</strong> to install a plugin from the cards list.' ) . '</li>';
     73$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>';
     74$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>';
     75
     76get_current_screen()->add_help_tab( array(
     77        'id'      => 'adding-plugins',
     78        'title'   => __( 'Adding Plugins' ),
     79        'content' => $adding_plugins,
     80) );
     81
    6482get_current_screen()->set_help_sidebar(
    6583        '<p><strong>' . __('For more information:') . '</strong></p>' .
    6684        '<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>' . _x( '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.', 'media grid view' ) . '</p>' .
     36                        '<p>' . _x( '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.', 'media grid view' ) . '</p>'
    3637        ) );
    3738
     39        get_current_screen()->add_help_tab( array(
     40                'id'      => 'details-modal',
     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'      => 'details-modal',
     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>' . _x( '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.', 'media list view' ) . '</p>' .
     206        '<p>' . _x( '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.', 'media list view' ) . '</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(