Make WordPress Core


Ignore:
Timestamp:
11/02/2011 03:12:37 AM (14 years ago)
Author:
ryan
Message:

Use add_help_sidebar(). see #19020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r19054 r19111  
    226226        $help .= '<li>' . __( '<strong>Description</strong> - The description is not prominent by default; however, some themes may display it.' ) . '</li>' .
    227227        '</ul>' .
    228         '<p>' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '</p>' .
    229         '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
     228        '<p>' . __( 'You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.' ) . '</p>';
     229
     230    add_contextual_help($current_screen, $help);
     231
     232    $help = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
    230233
    231234    if ( 'category' == $taxonomy )
     
    238241    $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    239242
    240     add_contextual_help($current_screen, $help);
     243    get_current_screen()->add_help_sidebar( $help );
     244
    241245    unset($help);
    242246}
Note: See TracChangeset for help on using the changeset viewer.