Move hack file include.

git-svn-id: http://svn.automattic.com/wordpress/trunk@844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-02-07 22:52:20 +00:00
parent ddaa35390d
commit c26991b1d1
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');
}
?>