Hacks file option and include.

git-svn-id: http://svn.automattic.com/wordpress/trunk@614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2003-12-15 09:55:47 +00:00
parent 39e68a7a6f
commit eb2969916c
3 changed files with 44 additions and 30 deletions

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