mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-19 00:55:13 +01:00
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:
parent
44799523bc
commit
56b53ff30f
@ -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.
|
||||||
*
|
*
|
||||||
|
@ -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’ uh?' ) );
|
wp_die( __( 'Cheatin’ uh?' ) );
|
||||||
else
|
|
||||||
add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user