Remove 'plugins page is not visible to normal users' notice. We're just not that into you.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-08-02 17:25:54 +00:00
parent 44799523bc
commit 56b53ff30f
2 changed files with 0 additions and 13 deletions

View File

@ -824,17 +824,6 @@ function ms_deprecated_blogs_file() {
} }
add_action( 'admin_notices', 'ms_deprecated_blogs_file' ); add_action( 'admin_notices', 'ms_deprecated_blogs_file' );
/**
* Outputs the notice message for multisite regarding activation of plugin page.
*
* @since 3.0.0
* @return none
*/
function _admin_notice_multisite_activate_plugins_page() {
$message = sprintf( __( 'The plugins page is not visible to normal users. It must be activated first. %s' ), '<a href="' . esc_url( admin_url( 'ms-options.php#menu' ) ) . '">' . __( 'Activate' ) . '</a>' );
echo "<div class='error'><p>$message</p></div>";
}
/** /**
* Grants super admin privileges. * Grants super admin privileges.
* *

View File

@ -14,8 +14,6 @@ if ( is_multisite() ) {
if ( empty( $menu_perms['plugins'] ) ) { if ( empty( $menu_perms['plugins'] ) ) {
if ( ! is_super_admin() ) if ( ! is_super_admin() )
wp_die( __( 'Cheatin&#8217; uh?' ) ); wp_die( __( 'Cheatin&#8217; uh?' ) );
else
add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
} }
} }