mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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:
+2
-21
@@ -1,24 +1,9 @@
|
||||
<?php
|
||||
require_once('../wp-includes/wp-l10n.php');
|
||||
require_once('admin.php');
|
||||
|
||||
$title = __('Edit User');
|
||||
|
||||
function add_magic_quotes($array) {
|
||||
foreach ($array as $k => $v) {
|
||||
if (is_array($v)) {
|
||||
$array[$k] = add_magic_quotes($v);
|
||||
} else {
|
||||
$array[$k] = addslashes($v);
|
||||
}
|
||||
}
|
||||
return $array;
|
||||
}
|
||||
|
||||
if (!get_magic_quotes_gpc()) {
|
||||
$_POST = add_magic_quotes($_POST);
|
||||
}
|
||||
|
||||
$wpvarstoreset = array('action', 'standalone', 'redirect', 'profile', 'user_id');
|
||||
$wpvarstoreset = array('action', 'redirect', 'profile', 'user_id');
|
||||
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
||||
$wpvar = $wpvarstoreset[$i];
|
||||
if (!isset($$wpvar)) {
|
||||
@@ -83,9 +68,6 @@ break;
|
||||
|
||||
case 'switchposts':
|
||||
|
||||
$standalone = 1;
|
||||
require_once('admin-header.php');
|
||||
|
||||
check_admin_referer();
|
||||
|
||||
/* TODO: Switch all posts from one user to another user */
|
||||
@@ -94,7 +76,6 @@ break;
|
||||
|
||||
default:
|
||||
|
||||
$standalone = 0;
|
||||
include ('admin-header.php');
|
||||
|
||||
$edituser = get_userdata($user_id);
|
||||
|
||||
Reference in New Issue
Block a user