Make WordPress Core


Ignore:
Timestamp:
12/01/2011 02:22:07 AM (15 years ago)
Author:
ryan
Message:

Use WP_Screen::add_help_tab(). see #19020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r19119 r19514  
    100100         */
    101101        function help() {
    102                 add_contextual_help( $this->page,
     102        get_current_screen()->add_help_tab( array(
     103                'id'      => 'overview',
     104                'title'   => __('Overview'),
     105                'content' =>
    103106                        '<p>' . __( 'You can set a custom image header for your site. Simply upload the image and crop it, and the new header will go live immediately.' ) . '</p>' .
    104107                        '<p>' . __( 'If you want to discard your custom header and go back to the default included in your theme, click on the buttons to remove the custom image and restore the original header image.' ) . '</p>' .
    105108                        '<p>' . __( 'Some themes come with additional header images bundled. If you see multiple images displayed, select the one you&#8217;d like and click the Save Changes button.' ) . '</p>'
    106                 );
     109                ) );
    107110
    108111                get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.