Make WordPress Core


Ignore:
Timestamp:
11/23/2011 11:02:22 PM (13 years ago)
Author:
ryan
Message:

Help tabs. Props chexee. see #19020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r19119 r19435  
    146146add_screen_option( 'per_page', array('label' => _x( 'Media items', 'items per page (screen options)' )) );
    147147
    148 add_contextual_help( $current_screen,
     148get_current_screen()->add_help_tab( array(
     149'id'        => 'overview',
     150'title'     => __('Overview'),
     151'content'   => 
    149152    '<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 <em>Screen Options</em> tab to customize the display of this screen.' ) . '</p>' .
    150     '<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>' .
    151     '<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>' .
     153    '<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>'
     154) );
     155get_current_screen()->add_help_tab( array(
     156'id'        => 'hover-actions',
     157'title'     => __('Hover Actions'),
     158'content'   =>
     159    '<p>' . __( 'Hovering over a row reveals action links: <em>Edit</em>, <em>Delete Permanently</em>, and <em>View</em>. Clicking <em>Edit</em> or on the media file&#8217;s name displays a simple screen to edit that individual file&#8217;s metadata. Clicking <em>Delete Permanently</em> will delete the file from the media library (as well as from any posts to which it is currently attached). <em>View</em> will take you to the display page for that file.' ) . '</p>'
     160) );
     161get_current_screen()->add_help_tab( array(
     162'id'        => 'attach-media-files',
     163'title'     => __('Attach Media Files'),
     164'content'   =>
    152165    '<p>' . __( 'If a media file has not been attached to any post, you will see that in the <em>Attached To</em> column, and can click on <em>Attach File</em> to launch a small popup that will allow you to search for a post and attach the file.' ) . '</p>'
    153 );
     166) );
    154167
    155168get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.