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