From 4e9ebf41a7e5b29064c514a97f269d6f934df769 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 May 2009 23:42:46 +0000 Subject: [PATCH] Show theme install help text only if user has install_themes cap. git-svn-id: http://svn.automattic.com/wordpress/trunk@11285 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index ae8fc4fe8a..66fd5beb10 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -29,8 +29,10 @@ $title = __('Manage Themes'); $parent_file = 'themes.php'; $help = '

' . __('Themes give your WordPress style. Once a theme is installed, you may preview it, activate it or deactivate it here.') . '

'; -$help .= '

' . sprintf(__('You can find additional themes for your site by using the new Theme Browser/Installer functionality or by browsing the WordPress Theme Directory directly and installing manually. To install a theme manually, upload its ZIP archive with the new uploader or copy its folder via FTP into your wp-content/themes directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '

'; -$help .= '

' . __('Once a theme is uploaded, you should see it on this page.') . '

' ; +if ( current_user_can('install_themes') ) { + $help .= '

' . sprintf(__('You can find additional themes for your site by using the new Theme Browser/Installer functionality or by browsing the WordPress Theme Directory directly and installing manually. To install a theme manually, upload its ZIP archive with the new uploader or copy its folder via FTP into your wp-content/themes directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '

'; + $help .= '

' . __('Once a theme is uploaded, you should see it on this page.') . '

' ; +} add_contextual_help('themes', $help);