Move hack file include.

git-svn-id: https://develop.svn.wordpress.org/trunk@844 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-02-07 22:52:20 +00:00
parent 8ead9ca329
commit 94054cd0ee
2 changed files with 8 additions and 8 deletions

View File

@ -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');
}
?>

View File

@ -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');
}
?>