From 9dc65ab2db84e5d6afa8d27d0a64dcda7cb288b1 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 27 Apr 2004 23:17:16 +0000 Subject: [PATCH] Cleaning up some includes. git-svn-id: http://svn.automattic.com/wordpress/trunk@1190 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2rdf.php | 4 +--- b2rss.php | 4 +--- b2rss2.php | 4 +--- wp-admin/import-greymatter.php | 5 ----- wp-admin/link-parse-opml.php | 1 - wp-includes/functions.php | 5 +++++ wp-settings.php | 23 ++++++++--------------- 7 files changed, 16 insertions(+), 30 deletions(-) diff --git a/b2rdf.php b/b2rdf.php index 6923cebfd6..d865de00c3 100644 --- a/b2rdf.php +++ b/b2rdf.php @@ -1,7 +1,5 @@ hide_errors(); @@ -34,22 +36,13 @@ if (!$users && !strstr($_SERVER['REQUEST_URI'], 'install.php')) { } $wpdb->show_errors(); -// This is the name of the include directory. No "/" allowed. - -require_once (ABSPATH . WPINC . '/functions.php'); -require_once (ABSPATH . 'wp-config-extra.php'); -require_once (ABSPATH . WPINC . '/template-functions.php'); -require_once (ABSPATH . WPINC . '/class-xmlrpc.php'); -require_once (ABSPATH . WPINC . '/class-xmlrpcs.php'); -require_once (ABSPATH . WPINC . '/links.php'); -require_once (ABSPATH . WPINC . '/kses.php'); +require (ABSPATH . WPINC . '/functions.php'); +require (ABSPATH . 'wp-config-extra.php'); +require (ABSPATH . WPINC . '/template-functions.php'); +require (ABSPATH . WPINC . '/links.php'); +require (ABSPATH . WPINC . '/kses.php'); require_once (ABSPATH . WPINC . '/wp-l10n.php'); -//setup the old globals from b2config.php -// -// We should eventually migrate to either calling -// get_settings() wherever these are needed OR -// accessing a single global $all_settings var if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) { $querystring_start = '?'; @@ -61,7 +54,7 @@ if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST } //end !$_wp_installing -require_once (ABSPATH . WPINC . '/vars.php'); +require (ABSPATH . WPINC . '/vars.php'); // Check for hacks file if the option is enabled