WordPress.org

Make WordPress Core

Ticket #19020: 19020-themes.php.diff

File 19020-themes.php.diff, 2.8 KB (added by Ipstenu, 6 years ago)

Themes main page.

  • themes.php

     
    3737 
    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>'; 
     40$helpmanage = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>'; 
     41$helpmanage .= '<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>'; 
    4242if ( 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>'; 
     43        $helpinstall = ( is_multisite() ? '<p>' . __('Installing themes on MultiSite can only be done from the Network Admin section.') . '</p>' : '<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 add_contextual_help($current_screen, $help); 
     45get_current_screen()->add_help_tab( array(  
     46        'id'      => 'manage-themes', 
     47        'title'   => __('Manage Themes'),  
     48        'content' => $helpmanage 
     49) ) ; 
    4650 
     51get_current_screen()->add_help_tab( array(  
     52        'id'      => 'install-themes', 
     53        'title'   => __('Install Themes'),  
     54        'content' => $helpinstall 
     55) ) ; 
     56 
    4757get_current_screen()->set_help_sidebar( 
    4858        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    4959        '<p>' . __('<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>') . '</p>' .