From e9c7715b9abdbdc8ff3a63e77d62a397b5e0eb42 Mon Sep 17 00:00:00 2001 From: emc3 Date: Mon, 26 Jan 2004 16:06:59 +0000 Subject: [PATCH] Using require_once will make it easier to incorporate WP functionality into custom templates. git-svn-id: http://svn.automattic.com/wordpress/trunk@796 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 6f0415965..a72f086be 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -21,7 +21,7 @@ $tableoptionvalues = $table_prefix . 'optionvalues'; $tableoptiongroups = $table_prefix . 'optiongroups'; $tableoptiongroup_options = $table_prefix . 'optiongroup_options'; define('WPINC', 'wp-includes'); -require (ABSPATH . WPINC . '/wp-db.php'); +require_once (ABSPATH . WPINC . '/wp-db.php'); $wpdb->hide_errors(); if (!$wpdb->get_row("SELECT * FROM $tableusers LIMIT 1") && !strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php')) { @@ -31,13 +31,13 @@ $wpdb->show_errors(); // This is the name of the include directory. No "/" allowed. -require (ABSPATH . WPINC . '/functions.php'); -require (ABSPATH . 'wp-config-extra.php'); -require (ABSPATH . WPINC . '/template-functions.php'); -require (ABSPATH . WPINC . '/class-xmlrpc.php'); -require (ABSPATH . WPINC . '/class-xmlrpcs.php'); -require (ABSPATH . WPINC . '/links.php'); -require (ABSPATH . WPINC . '/kses.php'); +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'); //setup the old globals from b2config.php // @@ -108,5 +108,5 @@ if (!strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php') && !strstr($HTTP_SE -require (ABSPATH . WPINC . '/vars.php'); +require_once (ABSPATH . WPINC . '/vars.php'); ?> \ No newline at end of file