Make WordPress Core


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

Use add_help_sidebar(). see #19020

File:
1 edited

Legend:

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

    r18911 r19111  
    4444    <p>' . __('Many themes show some sidebar widgets by default until you edit your sidebars, but they are not automatically displayed in your sidebar management tool. After you make your first widget change, you can re-add the default widgets by adding them from the Available Widgets area.') . '</p>
    4545';
    46 $help .= '<p><strong>' . __('For more information:') . '</strong></p>';
    47 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_Screen" target="_blank">Documentation on Widgets</a>') . '</p>';
    48 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
     46
    4947add_contextual_help($current_screen, $help);
     48
     49get_current_screen()->add_help_sidebar(
     50    '<p><strong>' . __('For more information:') . '</strong></p>' .
     51    '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_Screen" target="_blank">Documentation on Widgets</a>') . '</p>' .
     52    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     53);
    5054
    5155// These are the widgets grouped by sidebar
Note: See TracChangeset for help on using the changeset viewer.