Ticket #25160: 25160.diff
File 25160.diff, 6.4 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/deprecated.php
533 533 $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'"; 534 534 } 535 535 536 do_action _ref_array( 'pre_user_search', array( &$this ));536 do_action( 'pre_user_search', $this ); 537 537 } 538 538 539 539 /** -
src/wp-includes/class-wp.php
328 328 * 329 329 * @since 2.1.0 330 330 * 331 * @param WP &$this Current WordPress environment instance (passed by reference).331 * @param WP $this Current WordPress environment instance (passed by reference). 332 332 */ 333 do_action _ref_array( 'parse_request', array( &$this ));333 do_action( 'parse_request', $this ); 334 334 } 335 335 336 336 /** … … 443 443 * 444 444 * @since 2.1.0 445 445 * 446 * @param WP &$this Current WordPress environment instance (passed by reference).446 * @param WP $this Current WordPress environment instance (passed by reference). 447 447 */ 448 do_action _ref_array( 'send_headers', array( &$this ));448 do_action( 'send_headers', $this ); 449 449 } 450 450 451 451 /** … … 617 617 * 618 618 * @since 2.1.0 619 619 * 620 * @param WP &$this Current WordPress environment instance (passed by reference).620 * @param WP $this Current WordPress environment instance (passed by reference). 621 621 */ 622 do_action _ref_array( 'wp', array( &$this ));622 do_action( 'wp', $this ); 623 623 } 624 624 625 625 } -
src/wp-includes/class.wp-scripts.php
42 42 * 43 43 * @since 2.6.0 44 44 * 45 * @param WP_Scripts &$this WP_Scripts instance, passed by reference.45 * @param WP_Scripts $this WP_Scripts instance, passed by reference. 46 46 */ 47 do_action _ref_array( 'wp_default_scripts', array(&$this));47 do_action( 'wp_default_scripts', $this ); 48 48 } 49 49 50 50 /** -
src/wp-includes/class.wp-styles.php
34 34 * 35 35 * @since 2.6.0 36 36 * 37 * @param WP_Styles &$this WP_Styles instance, passed by reference.37 * @param WP_Styles $this WP_Styles instance, passed by reference. 38 38 */ 39 do_action _ref_array( 'wp_default_styles', array(&$this));39 do_action( 'wp_default_styles', $this ); 40 40 } 41 41 42 42 /** -
src/wp-includes/comment.php
413 413 * 414 414 * @since 3.1.0 415 415 * 416 * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.416 * @param WP_Comment_Query $this Current instance of WP_Comment_Query, passed by reference. 417 417 */ 418 do_action _ref_array( 'pre_get_comments', array( &$this ));418 do_action( 'pre_get_comments', $this ); 419 419 420 420 // $args can be whatever, only use the args defined in defaults to compute the key 421 421 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $defaults ) ) ) ); -
src/wp-includes/query.php
1812 1812 * 1813 1813 * @since 1.5.0 1814 1814 * 1815 * @param WP_Query &$this The WP_Query instance (passed by reference).1815 * @param WP_Query $this The WP_Query instance (passed by reference). 1816 1816 */ 1817 do_action _ref_array( 'parse_query', array( &$this ));1817 do_action( 'parse_query', $this ); 1818 1818 } 1819 1819 1820 1820 /** … … 2372 2372 * 2373 2373 * @since 2.0.0 2374 2374 * 2375 * @param WP_Query &$this The WP_Query instance (passed by reference).2375 * @param WP_Query $this The WP_Query instance (passed by reference). 2376 2376 */ 2377 do_action _ref_array( 'pre_get_posts', array( &$this ));2377 do_action( 'pre_get_posts', $this ); 2378 2378 2379 2379 // Shorthand. 2380 2380 $q = &$this->query_vars; … … 3700 3700 * 3701 3701 * @since 2.0.0 3702 3702 * 3703 * @param WP_Query &$this The WP_Query instance (passed by reference).3703 * @param WP_Query $this The WP_Query instance (passed by reference). 3704 3704 */ 3705 do_action _ref_array( 'loop_start', array( &$this ));3705 do_action( 'loop_start', $this ); 3706 3706 3707 3707 $post = $this->next_post(); 3708 3708 $this->setup_postdata( $post ); … … 3727 3727 * 3728 3728 * @since 2.0.0 3729 3729 * 3730 * @param WP_Query &$this The WP_Query instance (passed by reference).3730 * @param WP_Query $this The WP_Query instance (passed by reference). 3731 3731 */ 3732 do_action _ref_array( 'loop_end', array( &$this ));3732 do_action( 'loop_end', $this ); 3733 3733 // Do some cleaning up after the loop 3734 3734 $this->rewind_posts(); 3735 3735 } … … 4600 4600 * @since 2.8.0 4601 4601 * @since 4.1.0 Introduced `$this` parameter. 4602 4602 * 4603 * @param WP_Post &$post The Post object (passed by reference).4604 * @param WP_Query &$this The current Query object (passed by reference).4603 * @param WP_Post $post The Post object (passed by reference). 4604 * @param WP_Query $this The current Query object (passed by reference). 4605 4605 */ 4606 do_action _ref_array( 'the_post', array( &$post, &$this ));4606 do_action( 'the_post', $post, $this ); 4607 4607 4608 4608 return true; 4609 4609 } -
src/wp-includes/rewrite.php
1715 1715 * 1716 1716 * @param WP_Rewrite $this Current WP_Rewrite instance, passed by reference. 1717 1717 */ 1718 do_action _ref_array( 'generate_rewrite_rules', array( &$this ));1718 do_action( 'generate_rewrite_rules', $this ); 1719 1719 1720 1720 /** 1721 1721 * Filter the full set of generated rewrite rules. -
src/wp-includes/user.php
782 782 * @param WP_User_Query $this The current WP_User_Query instance, 783 783 * passed by reference. 784 784 */ 785 do_action _ref_array( 'pre_user_query', array( &$this ));785 do_action( 'pre_user_query', $this ); 786 786 } 787 787 788 788 /**