WordPress.org

Make WordPress Core


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

Use add_help_sidebar(). see #19020

File:
1 edited

Legend:

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

    r19028 r19111  
    4343    $help .= '<p>' . sprintf(__('If you would like to see more themes to choose from, click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!'), 'http://wordpress.org/extend/themes/') . '</p>';
    4444
    45 $help .= '<p><strong>' . __('For more information:') . '</strong></p>';
    46 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>';
    47 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    4845add_contextual_help($current_screen, $help);
     46
     47get_current_screen()->add_help_sidebar(
     48    '<p><strong>' . __('For more information:') . '</strong></p>' .
     49    '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' .
     50    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     51);
    4952
    5053add_thickbox();
Note: See TracChangeset for help on using the changeset viewer.