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:
@@ -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');
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user