From c26991b1d170524e2036b8e96995f665b328cfb8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 7 Feb 2004 22:52:20 +0000 Subject: [PATCH] Move hack file include. git-svn-id: http://svn.automattic.com/wordpress/trunk@844 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 ------ wp-settings.php | 10 ++++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 846ff9420..ee5ba2b1e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1777,10 +1777,4 @@ function hilite($text) { return $text; } - -// Check for hacks file if the option is enabled -if (get_settings('hack_file')) { - if (file_exists(ABSPATH . '/my-hacks.php')) - require(ABSPATH . '/my-hacks.php'); -} ?> \ No newline at end of file diff --git a/wp-settings.php b/wp-settings.php index a72f086be..a2881e6f3 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -106,7 +106,13 @@ if (!strstr($HTTP_SERVER_VARS['REQUEST_URI'], 'install.php') && !strstr($HTTP_SE } //end !$_wp_installing - - require_once (ABSPATH . WPINC . '/vars.php'); + + +// Check for hacks file if the option is enabled +if (get_settings('hack_file')) { + if (file_exists(ABSPATH . '/my-hacks.php')) + require(ABSPATH . '/my-hacks.php'); +} + ?> \ No newline at end of file