current user cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@3566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -17,7 +17,7 @@ nocache_headers();
|
||||
|
||||
update_category_cache();
|
||||
|
||||
get_currentuserinfo();
|
||||
wp_get_current_user();
|
||||
|
||||
$posts_per_page = get_settings('posts_per_page');
|
||||
$what_to_show = get_settings('what_to_show');
|
||||
|
||||
@@ -26,8 +26,6 @@ case 'editcomment':
|
||||
$editing = true;
|
||||
require_once ('admin-header.php');
|
||||
|
||||
get_currentuserinfo();
|
||||
|
||||
$comment = (int) $_GET['comment'];
|
||||
|
||||
if ( ! $comment = get_comment($comment) )
|
||||
|
||||
@@ -3,8 +3,6 @@ require_once('../wp-config.php');
|
||||
require_once('admin-functions.php');
|
||||
require_once('admin-db.php');
|
||||
|
||||
get_currentuserinfo();
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
die('-1');
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ require_once('../wp-config.php');
|
||||
require_once('admin-functions.php');
|
||||
require_once('admin-db.php');
|
||||
|
||||
get_currentuserinfo();
|
||||
if ( !is_user_logged_in() )
|
||||
die('-1');
|
||||
|
||||
|
||||
@@ -68,8 +68,6 @@ case 'update':
|
||||
if ( get_settings('siteurl') != $old_siteurl || get_settings('home') != $old_home ) {
|
||||
// If home changed, write rewrite rules to new location.
|
||||
$wp_rewrite->flush_rules();
|
||||
// Get currently logged in user and password.
|
||||
get_currentuserinfo();
|
||||
// Clear cookies for old paths.
|
||||
wp_clearcookie();
|
||||
// Set cookies for new paths.
|
||||
|
||||
@@ -13,8 +13,6 @@ require_once('admin-header.php');
|
||||
<?php
|
||||
if ( current_user_can('edit_pages') ) {
|
||||
$action = 'post';
|
||||
get_currentuserinfo();
|
||||
|
||||
$post = get_default_post_to_edit();
|
||||
$post->post_type = 'page';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user