Move wpmu_menu() logic into menu.php. Props Denis-de-Bernardy. fixes #11763

git-svn-id: http://svn.automattic.com/wordpress/trunk@12618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-01-07 00:17:13 +00:00
parent e0de5aa0a0
commit dbe9b17271
3 changed files with 30 additions and 38 deletions

View File

@@ -236,6 +236,15 @@ $help .= '<p>' . sprintf(__('You can find additional plugins for your site by us
add_contextual_help('plugins', $help);
if ( is_multisite() && is_super_admin() ) {
$menu_perms = get_site_option('menu_items', array());
if ( !$menu_perms['plugins'] ) {
$message = sprintf( __( 'The plugins page is not visible to normal users. It must be activated first. %s' ), '<a href="ms-options.php#menu">' . __( 'Activate' ) . '</a>' );
$message = str_replace( "'", "\'", "<div class='error'><p>$message</p></div>" );
add_action( 'admin_notices', create_function( '', "echo '$message';" ) );
}
}
$title = __('Manage Plugins');
require_once('admin-header.php');