mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +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,5 +1,5 @@
|
||||
<?php
|
||||
require_once('../wp-includes/wp-l10n.php');
|
||||
require_once('admin.php');
|
||||
|
||||
$title = __('Users');
|
||||
$parent_file = 'users.php';
|
||||
@@ -22,9 +22,6 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
||||
|
||||
switch ($action) {
|
||||
case 'adduser':
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
function filter($value) {
|
||||
@@ -100,10 +97,6 @@ case 'adduser':
|
||||
break;
|
||||
|
||||
case 'promote':
|
||||
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
if (empty($_GET['prom'])) {
|
||||
@@ -135,9 +128,6 @@ break;
|
||||
|
||||
case 'delete':
|
||||
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
$id = intval($_GET['id']);
|
||||
@@ -176,7 +166,6 @@ break;
|
||||
|
||||
default:
|
||||
|
||||
$standalone = 0;
|
||||
include ('admin-header.php');
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user