Skip to content

Commit

Permalink
Move hack file include.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
saxmatt committed Feb 7, 2004
1 parent ddaa353 commit c26991b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 0 additions & 6 deletions wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
?>
8 changes: 7 additions & 1 deletion wp-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@

} //end !$_wp_installing

require_once (ABSPATH . WPINC . '/vars.php');


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

?>

0 comments on commit c26991b

Please sign in to comment.