Ticket #16661: 16661.2.patch
File 16661.2.patch, 8.8 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/deprecated.php
502 502 $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'"; 503 503 } 504 504 505 do_action _ref_array( 'pre_user_search', array( &$this ));505 do_action( 'pre_user_search', $this ); 506 506 } 507 507 508 508 /** -
wp-admin/includes/user.php
176 176 } 177 177 178 178 // Allow plugins to return their own errors. 179 do_action _ref_array('user_profile_update_errors', array ( &$errors, $update, &$user ));179 do_action('user_profile_update_errors', $errors, $update, $user ); 180 180 181 181 if ( $errors->get_error_codes() ) 182 182 return $errors; -
wp-includes/admin-bar.php
57 57 58 58 $wp_admin_bar->load_user_locale_translations(); 59 59 60 do_action _ref_array( 'admin_bar_menu', array( &$wp_admin_bar ));60 do_action( 'admin_bar_menu', $wp_admin_bar ); 61 61 62 62 do_action( 'wp_before_admin_bar_render' ); 63 63 -
wp-includes/class-wp.php
298 298 299 299 $this->query_vars = apply_filters('request', $this->query_vars); 300 300 301 do_action _ref_array('parse_request', array(&$this));301 do_action( 'parse_request', $this ); 302 302 } 303 303 304 304 /** … … 373 373 if ( $exit_required ) 374 374 exit(); 375 375 376 do_action _ref_array('send_headers', array(&$this));376 do_action( 'send_headers', $this ); 377 377 } 378 378 379 379 /** … … 501 501 $this->query_posts(); 502 502 $this->handle_404(); 503 503 $this->register_globals(); 504 do_action _ref_array('wp', array(&$this));504 do_action( 'wp', $this ); 505 505 } 506 506 507 507 /** -
wp-includes/class.wp-scripts.php
31 31 var $default_dirs; 32 32 33 33 function __construct() { 34 do_action _ref_array( 'wp_default_scripts', array(&$this));34 do_action( 'wp_default_scripts', $this ); 35 35 } 36 36 37 37 /** -
wp-includes/class.wp-styles.php
28 28 var $default_dirs; 29 29 30 30 function __construct() { 31 do_action _ref_array( 'wp_default_styles', array(&$this));31 do_action( 'wp_default_styles', $this ); 32 32 } 33 33 34 34 function do_item( $handle ) { -
wp-includes/comment.php
221 221 ); 222 222 223 223 $this->query_vars = wp_parse_args( $query_vars, $defaults ); 224 do_action _ref_array( 'pre_get_comments', array( &$this ));224 do_action( 'pre_get_comments', $this ); 225 225 extract( $this->query_vars, EXTR_SKIP ); 226 226 227 227 // $args can be whatever, only use the args defined in defaults to compute the key -
wp-includes/feed.php
535 535 $feed->set_cache_class('WP_Feed_Cache'); 536 536 $feed->set_file_class('WP_SimplePie_File'); 537 537 $feed->set_cache_duration(apply_filters('wp_feed_cache_transient_lifetime', 43200, $url)); 538 do_action _ref_array( 'wp_feed_options', array( &$feed, $url ));538 do_action( 'wp_feed_options', $feed, $url ); 539 539 $feed->init(); 540 540 $feed->handle_content_type(); 541 541 -
wp-includes/pluggable.php
256 256 * @uses apply_filters() Calls 'wp_mail_from_name' hook to get the from address name. 257 257 * @uses apply_filters() Calls 'wp_mail_content_type' hook to get the email content type. 258 258 * @uses apply_filters() Calls 'wp_mail_charset' hook to get the email charset 259 * @uses do_action _ref_array() Calls 'phpmailer_init' hook on the reference to259 * @uses do_action() Calls 'phpmailer_init' hook on the reference to 260 260 * phpmailer object. 261 261 * @uses PHPMailer 262 262 * @ … … 459 459 } 460 460 } 461 461 462 do_action _ref_array( 'phpmailer_init', array( &$phpmailer ));462 do_action( 'phpmailer_init', $phpmailer ); 463 463 464 464 // Send! 465 465 $result = @$phpmailer->Send(); -
wp-includes/query.php
1627 1627 if ( '404' == $qv['error'] ) 1628 1628 $this->set_404(); 1629 1629 1630 do_action _ref_array('parse_query', array(&$this));1630 do_action( 'parse_query', $this ); 1631 1631 } 1632 1632 1633 1633 /* … … 1868 1868 * 1869 1869 * @since 1.5.0 1870 1870 * @access public 1871 * @uses do_action _ref_array() Calls 'pre_get_posts' hook before retrieving posts.1871 * @uses do_action() Calls 'pre_get_posts' hook before retrieving posts. 1872 1872 * 1873 1873 * @return array List of posts. 1874 1874 */ … … 1877 1877 1878 1878 $this->parse_query(); 1879 1879 1880 do_action _ref_array('pre_get_posts', array(&$this));1880 do_action( 'pre_get_posts', $this ); 1881 1881 1882 1882 // Shorthand. 1883 1883 $q = &$this->query_vars; … … 2732 2732 * @since 1.5.0 2733 2733 * @access public 2734 2734 * @uses $post 2735 * @uses do_action _ref_array() Calls 'loop_start' if loop has just started2735 * @uses do_action() Calls 'loop_start' if loop has just started 2736 2736 */ 2737 2737 function the_post() { 2738 2738 global $post; 2739 2739 $this->in_the_loop = true; 2740 2740 2741 2741 if ( $this->current_post == -1 ) // loop has just started 2742 do_action _ref_array('loop_start', array(&$this));2742 do_action( 'loop_start', $this ); 2743 2743 2744 2744 $post = $this->next_post(); 2745 2745 setup_postdata($post); … … 2752 2752 * 2753 2753 * @since 1.5.0 2754 2754 * @access public 2755 * @uses do_action _ref_array() Calls 'loop_end' if loop is ended2755 * @uses do_action() Calls 'loop_end' if loop is ended 2756 2756 * 2757 2757 * @return bool True if posts are available, false if end of loop. 2758 2758 */ … … 2760 2760 if ( $this->current_post + 1 < $this->post_count ) { 2761 2761 return true; 2762 2762 } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) { 2763 do_action _ref_array('loop_end', array(&$this));2763 do_action( 'loop_end', $this ); 2764 2764 // Do some cleaning up after the loop 2765 2765 $this->rewind_posts(); 2766 2766 } … … 3485 3485 * @since 1.5.0 3486 3486 * 3487 3487 * @param object $post Post data. 3488 * @uses do_action _ref_array() Calls 'the_post'3488 * @uses do_action() Calls 'the_post' 3489 3489 * @return bool True when finished. 3490 3490 */ 3491 3491 function setup_postdata($post) { … … 3518 3518 $multipage = 0; 3519 3519 } 3520 3520 3521 do_action _ref_array('the_post', array(&$post));3521 do_action( 'the_post', $post ); 3522 3522 3523 3523 return true; 3524 3524 } -
wp-includes/rewrite.php
1562 1562 else 1563 1563 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); 1564 1564 1565 do_action _ref_array('generate_rewrite_rules', array(&$this));1565 do_action( 'generate_rewrite_rules', $this ); 1566 1566 $this->rules = apply_filters('rewrite_rules_array', $this->rules); 1567 1567 1568 1568 return $this->rules; -
wp-includes/user.php
531 531 $this->query_where .= " AND $wpdb->users.ID NOT IN ($ids)"; 532 532 } 533 533 534 do_action _ref_array( 'pre_user_query', array( &$this ));534 do_action( 'pre_user_query', $this ); 535 535 } 536 536 537 537 /** -
wp-includes/widgets.php
270 270 $return = $this->form($instance); 271 271 // add extra fields in the widget form - be sure to set $return to null if you add any 272 272 // if the widget has no form the text echoed from the default form method can be hidden using css 273 do_action_ref_array( 'in_widget_form', array( &$this, &$return, $instance) );273 do_action_ref_array( 'in_widget_form', array($this, &$return, $instance) ); 274 274 } 275 275 return $return; 276 276 }