Allow multiple args to be passed to apply_filters and do_action. Move some code into merge_filters. Use call_user_func_array so that args can be passed by reference. Provide a default for the second arg to do_action so that we do not have to put empty strings in the do_action calls. Bug 768. Hat tip: morganiq

git-svn-id: https://develop.svn.wordpress.org/trunk@2184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-02-01 06:20:54 +00:00
parent 53d75a06d5
commit 02a701f72b
8 changed files with 42 additions and 19 deletions

View File

@@ -120,10 +120,10 @@ if ( !get_magic_quotes_gpc() ) {
}
function shutdown_action_hook() {
do_action('shutdown', '');
do_action('shutdown');
}
register_shutdown_function('shutdown_action_hook');
// Everything is loaded.
do_action('init', '');
do_action('init');
?>