Hacks file option and include.

git-svn-id: https://develop.svn.wordpress.org/trunk@614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-12-15 09:55:47 +00:00
parent e8c100d0b6
commit 40fc216aa7
3 changed files with 44 additions and 30 deletions
+6 -1
View File
@@ -1660,4 +1660,9 @@ function add_filter($tag, $function_to_add) {
return true;
}
?>
// 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');
}
?>