From deddf3c40e1dbfd00e529e92e68e3133b5d24975 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 25 Oct 2009 10:32:15 +0000 Subject: [PATCH] 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 --- wp-app.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/wp-app.php b/wp-app.php index 7f13dc0a7e..a7495f436a 100644 --- a/wp-app.php +++ b/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. *