From e03f75a0b8c0eb1f01ea657d6ee8e4cbc44c9747 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 27 Apr 2004 23:17:16 +0000 Subject: [PATCH] Cleaning up some includes. git-svn-id: https://develop.svn.wordpress.org/trunk@1190 602fd350-edb4-49c9-b593-d223f7449a82 --- 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