Changeset 4186
- Timestamp:
- 09/12/2006 05:45:23 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4182 r4186 476 476 477 477 /* checking the password has been typed twice */ 478 do_action ('check_passwords', array ($user->user_login, & $pass1, & $pass2));478 do_action_ref_array('check_passwords', array ($user->user_login, & $pass1, & $pass2)); 479 479 480 480 if (!$update) { -
trunk/wp-includes/classes.php
r4165 r4186 229 229 $this->query_vars = apply_filters('request', $this->query_vars); 230 230 231 do_action ('parse_request', array(&$this));231 do_action_ref_array('parse_request', array(&$this)); 232 232 } 233 233 … … 271 271 } 272 272 273 do_action ('send_headers', array(&$this));273 do_action_ref_array('send_headers', array(&$this)); 274 274 } 275 275 … … 339 339 $this->handle_404(); 340 340 $this->register_globals(); 341 do_action ('wp', array(&$this));341 do_action_ref_array('wp', array(&$this)); 342 342 } 343 343 -
trunk/wp-includes/comment.php
r4144 r4186 696 696 endforeach; 697 697 698 do_action ('pre_ping', array(&$post_links, &$pung));698 do_action_ref_array('pre_ping', array(&$post_links, &$pung)); 699 699 700 700 foreach ($post_links as $pagelinkedto){ -
trunk/wp-includes/plugin.php
r4179 r4186 112 112 merge_filters($tag); 113 113 114 if ( !isset($wp_filter[$tag]) ) {114 if ( !isset($wp_filter[$tag]) ) 115 115 return; 116 } 116 117 117 foreach ($wp_filter[$tag] as $priority => $functions) { 118 118 if ( !is_null($functions) ) { … … 129 129 $the_args = $args; 130 130 131 $string = call_user_func_array($function_name, $the_args); 131 call_user_func_array($function_name, $the_args); 132 } 133 } 134 } 135 } 136 137 function do_action_ref_array($tag, $args) { 138 global $wp_filter; 139 140 merge_filters($tag); 141 142 if ( !isset($wp_filter[$tag]) ) 143 return; 144 145 foreach ($wp_filter[$tag] as $priority => $functions) { 146 if ( !is_null($functions) ) { 147 foreach($functions as $function) { 148 149 $function_name = $function['function']; 150 $accepted_args = $function['accepted_args']; 151 152 if ( $accepted_args > 0 ) 153 $the_args = array_slice($args, 0, $accepted_args); 154 elseif ( $accepted_args == 0 ) 155 $the_args = NULL; 156 else 157 $the_args = $args; 158 159 call_user_func_array($function_name, $the_args); 132 160 } 133 161 } -
trunk/wp-includes/query.php
r4144 r4186 351 351 $this->is_404 = true; 352 352 if ( !empty($query) ) { 353 do_action ('parse_query', array(&$this));353 do_action_ref_array('parse_query', array(&$this)); 354 354 } 355 355 return; … … 499 499 500 500 if ( !empty($query) ) { 501 do_action ('parse_query', array(&$this));501 do_action_ref_array('parse_query', array(&$this)); 502 502 } 503 503 } … … 527 527 global $wpdb, $pagenow, $user_ID; 528 528 529 do_action ('pre_get_posts', array(&$this));529 do_action_ref_array('pre_get_posts', array(&$this)); 530 530 531 531 // Shorthand. -
trunk/wp-includes/rewrite.php
r4144 r4186 736 736 $this->rules = array_merge($robots_rewrite, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules); 737 737 738 do_action ('generate_rewrite_rules', array(&$this));738 do_action_ref_array('generate_rewrite_rules', array(&$this)); 739 739 $this->rules = apply_filters('rewrite_rules_array', $this->rules); 740 740 -
trunk/wp-login.php
r4144 r4186 189 189 } 190 190 191 do_action ('wp_authenticate', array(&$user_login, &$user_pass));191 do_action_ref_array('wp_authenticate', array(&$user_login, &$user_pass)); 192 192 193 193 if ( $user_login && $user_pass ) {
Note: See TracChangeset
for help on using the changeset viewer.