Make WordPress Core

Changeset 19473


Ignore:
Timestamp:
11/29/2011 05:34:08 PM (13 years ago)
Author:
koopersmith
Message:

Update help text on themes page. props Ipstenu, see #19020.

File:
1 edited

Legend:

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

    r19119 r19473  
    3838if ( current_user_can( 'switch_themes' ) ) :
    3939
    40 $help = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>';
    41 $help .= '<p>' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '</p>';
    42 if ( current_user_can('install_themes') )
    43     $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>';
    44 
    45 add_contextual_help($current_screen, $help);
     40$help_manage = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>' .
     41    '<p>' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '</p>';
     42
     43get_current_screen()->add_help_tab( array(
     44    'id'      => 'manage-themes',
     45    'title'   => __('Manage Themes'),
     46    'content' => $help_manage,
     47) );
     48
     49if ( current_user_can( 'install_themes' ) ) {
     50    if ( is_multisite() ) {
     51        $help_install = '<p>' . __('Installing themes on MultiSite can only be done from the Network Admin section.') . '</p>';
     52    } else {
     53        $help_install = '<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>';
     54    }
     55
     56    get_current_screen()->add_help_tab( array(
     57        'id'      => 'install-themes',
     58        'title'   => __('Install Themes'),
     59        'content' => $help_install,
     60    ) );
     61}
    4662
    4763get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.