mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Split admin-header.php into admin.php and admin-header.php. Split menu.php into menu-header.php and menu.php. Add plugin admin page support.
git-svn-id: https://develop.svn.wordpress.org/trunk@1818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
require_once('admin.php');
|
||||
|
||||
if ( isset($_GET['action']) ) {
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
if ('activate' == $_GET['action']) {
|
||||
@@ -24,13 +22,9 @@ if ( isset($_GET['action']) ) {
|
||||
}
|
||||
}
|
||||
|
||||
require_once('../wp-includes/wp-l10n.php');
|
||||
$title = __('Manage Plugins');
|
||||
require_once('admin-header.php');
|
||||
|
||||
if ($user_level < 9) // Must be at least level 9
|
||||
die (__('Sorry, you must be at least a level 8 user to modify plugins.'));
|
||||
|
||||
// Clean up options
|
||||
// If any plugins don't exist, axe 'em
|
||||
|
||||
|
||||
Reference in New Issue
Block a user