Make WordPress Core


Ignore:
Timestamp:
02/01/2005 06:20:54 AM (19 years ago)
Author:
rboren
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r2179 r2184  
    11401140        $this->rules = $page_rewrite + $root_rewrite + $comments_rewrite + $search_rewrite + $category_rewrite + $author_rewrite + $date_rewrite + $post_rewrite;
    11411141
    1142         do_action('generate_rewrite_rules', '');
     1142        do_action('generate_rewrite_rules', array(&$this));
    11431143        $this->rules = apply_filters('rewrite_rules_array', $this->rules);
    11441144        return $this->rules;
Note: See TracChangeset for help on using the changeset viewer.