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

git-svn-id: https://develop.svn.wordpress.org/trunk@15485 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-08-02 17:25:54 +00:00
parent 9d87a4c9a9
commit 383b705801
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' );
/**
* 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.
*

View File

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