Remove unnecessary and dead code from wp-app.php. Fixes #10938.

git-svn-id: https://develop.svn.wordpress.org/trunk@12102 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-10-25 10:32:15 +00:00
parent 9bbb57988d
commit deddf3c40e

View File

@ -17,15 +17,9 @@ define('APP_REQUEST', true);
/** Set up WordPress environment */ /** Set up WordPress environment */
require_once('./wp-load.php'); require_once('./wp-load.php');
/** Post Template API */
require_once(ABSPATH . WPINC . '/post-template.php');
/** Atom Publishing Protocol Class */ /** Atom Publishing Protocol Class */
require_once(ABSPATH . WPINC . '/atomlib.php'); require_once(ABSPATH . WPINC . '/atomlib.php');
/** Feed Handling API */
require_once(ABSPATH . WPINC . '/feed.php');
/** Admin Image API for metadata updating */ /** Admin Image API for metadata updating */
require_once(ABSPATH . '/wp-admin/includes/image.php'); 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. * Filter to add more post statuses.
* *