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