From 860b23d03e119e29d18b7f5e74ba775412df7dcd Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 6 Dec 2010 21:37:35 +0000 Subject: [PATCH] Don't reference nonexistent tabs. see #15707. git-svn-id: http://svn.automattic.com/wordpress/trunk@16759 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-themes-list-table.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index 89f3e44a30..9bbfa97ed3 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -61,10 +61,14 @@ class WP_Themes_List_Table extends WP_List_Table { } function no_items() { - if ( current_user_can( 'install_themes' ) ) - printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the Install Themes tab above.' ), is_multisite() ? network_admin_url( 'theme-install.php' ) : admin_url( 'theme-install.php' ) ); - else + if ( current_user_can( 'install_themes' ) ) { + if ( is_multisite() ) + printf( 'You only have one theme installed right now. Visit the Network Admin to install more themes.', network_admin_url( 'theme-install.php' ) ); + else + printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress.org Theme Directory at any time: just click on the Install Themes tab above.' ), admin_url( 'theme-install.php' ) ); + } else { printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); + } } function display_table() {