mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Remove unnecessary and dead code from wp-app.php. Fixes #10938.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e7a44cb398
commit
e5bf2656db
22
wp-app.php
22
wp-app.php
@ -17,15 +17,9 @@ define('APP_REQUEST', true);
|
||||
/** Set up WordPress environment */
|
||||
require_once('./wp-load.php');
|
||||
|
||||
/** Post Template API */
|
||||
require_once(ABSPATH . WPINC . '/post-template.php');
|
||||
|
||||
/** Atom Publishing Protocol Class */
|
||||
require_once(ABSPATH . WPINC . '/atomlib.php');
|
||||
|
||||
/** Feed Handling API */
|
||||
require_once(ABSPATH . WPINC . '/feed.php');
|
||||
|
||||
/** Admin Image API for metadata updating */
|
||||
require_once(ABSPATH . '/wp-admin/includes/image.php');
|
||||
|
||||
@ -69,22 +63,6 @@ function log_app($label,$msg) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( !function_exists('wp_set_current_user') ) :
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
function wp_set_current_user($id, $name = '') {
|
||||
global $current_user;
|
||||
|
||||
if ( isset($current_user) && ($id == $current_user->ID) )
|
||||
return $current_user;
|
||||
|
||||
$current_user = new WP_User($id, $name);
|
||||
|
||||
return $current_user;
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Filter to add more post statuses.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user