Ticket #35974: 35974.patch
File 35974.patch, 19.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/user.php
120 120 * @since 1.5.1 121 121 * 122 122 * @param string $user_login The username. 123 * @param string &$pass1The password, passed by reference.124 * @param string &$pass2The confirmed password, passed by reference.123 * @param string $pass1 The password, passed by reference. 124 * @param string $pass2 The confirmed password, passed by reference. 125 125 */ 126 126 do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) ); 127 127 … … 163 163 * 164 164 * @since 2.8.0 165 165 * 166 * @param WP_Error &$errors WP_Error object, passed by reference.167 * @param bool $update 168 * @param WP_User &$user WP_User object, passed by reference.166 * @param WP_Error $errors WP_Error object, passed by reference. 167 * @param bool $update Whether this is a user update. 168 * @param WP_User $user WP_User object, passed by reference. 169 169 */ 170 170 do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) ); 171 171 -
src/wp-includes/class-wp-comment-query.php
369 369 * 370 370 * @since 3.1.0 371 371 * 372 * @param WP_Comment_Query &$this Current instance of WP_Comment_Query, passed by reference.372 * @param WP_Comment_Query $this Current instance of WP_Comment_Query, passed by reference. 373 373 */ 374 374 do_action_ref_array( 'pre_get_comments', array( &$this ) ); 375 375 … … 449 449 * 450 450 * @since 3.1.0 451 451 * 452 * @param array $ resultsAn array of comments.453 * @param WP_Comment_Query &$thisCurrent instance of WP_Comment_Query, passed by reference.452 * @param array $_comments An array of comments. 453 * @param WP_Comment_Query $this Current instance of WP_Comment_Query, passed by reference. 454 454 */ 455 455 $_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) ); 456 456 … … 848 848 * @since 3.1.0 849 849 * 850 850 * @param array $pieces A compacted array of comment query clauses. 851 * @param WP_Comment_Query &$thisCurrent instance of WP_Comment_Query, passed by reference.851 * @param WP_Comment_Query $this Current instance of WP_Comment_Query, passed by reference. 852 852 */ 853 853 $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) ); 854 854 -
src/wp-includes/class-wp-http-curl.php
213 213 * 214 214 * @since 2.8.0 215 215 * 216 * @param resource &$handleThe cURL handle returned by curl_init().216 * @param resource $handle The cURL handle returned by curl_init(). 217 217 * @param array $r The HTTP request arguments. 218 218 * @param string $url The request URL. 219 219 */ -
src/wp-includes/class-wp.php
380 380 * 381 381 * @since 2.1.0 382 382 * 383 * @param WP &$this Current WordPress environment instance (passed by reference).383 * @param WP $this Current WordPress environment instance (passed by reference). 384 384 */ 385 385 do_action_ref_array( 'parse_request', array( &$this ) ); 386 386 } … … 504 504 * 505 505 * @since 2.1.0 506 506 * 507 * @param WP &$this Current WordPress environment instance (passed by reference).507 * @param WP $this Current WordPress environment instance (passed by reference). 508 508 */ 509 509 do_action_ref_array( 'send_headers', array( &$this ) ); 510 510 } … … 732 732 * 733 733 * @since 2.1.0 734 734 * 735 * @param WP &$this Current WordPress environment instance (passed by reference).735 * @param WP $this Current WordPress environment instance (passed by reference). 736 736 */ 737 737 do_action_ref_array( 'wp', array( &$this ) ); 738 738 } -
src/wp-includes/class.wp-scripts.php
147 147 * 148 148 * @since 2.6.0 149 149 * 150 * @param WP_Scripts &$this WP_Scripts instance, passed by reference.150 * @param WP_Scripts $this WP_Scripts instance, passed by reference. 151 151 */ 152 152 do_action_ref_array( 'wp_default_scripts', array(&$this) ); 153 153 } -
src/wp-includes/class.wp-styles.php
112 112 * 113 113 * @since 2.6.0 114 114 * 115 * @param WP_Styles &$this WP_Styles instance, passed by reference.115 * @param WP_Styles $this WP_Styles instance, passed by reference. 116 116 */ 117 117 do_action_ref_array( 'wp_default_styles', array(&$this) ); 118 118 } -
src/wp-includes/comment.php
2403 2403 * 2404 2404 * @since 2.0.0 2405 2405 * 2406 * @param array &$post_links An array of post links to be checked, passed by reference.2407 * @param array &$pung Whether a link has already been pinged, passed by reference.2408 * @param int $post_ID 2406 * @param array $post_links An array of post links to be checked, passed by reference. 2407 * @param array $pung Whether a link has already been pinged, passed by reference. 2408 * @param int $post_ID The post ID. 2409 2409 */ 2410 2410 do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) ); 2411 2411 -
src/wp-includes/feed.php
681 681 * 682 682 * @since 3.0.0 683 683 * 684 * @param object &$feed SimplePie feed object, passed by reference.685 * @param mixed $url 684 * @param object $feed SimplePie feed object, passed by reference. 685 * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged. 686 686 */ 687 687 do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); 688 688 $feed->init(); -
src/wp-includes/pluggable.php
470 470 * 471 471 * @since 2.2.0 472 472 * 473 * @param PHPMailer &$phpmailer The PHPMailer instance, passed by reference.473 * @param PHPMailer $phpmailer The PHPMailer instance, passed by reference. 474 474 */ 475 475 do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) ); 476 476 -
src/wp-includes/query.php
1864 1864 * 1865 1865 * @since 1.5.0 1866 1866 * 1867 * @param WP_Query &$this The WP_Query instance (passed by reference).1867 * @param WP_Query $this The WP_Query instance (passed by reference). 1868 1868 */ 1869 1869 do_action_ref_array( 'parse_query', array( &$this ) ); 1870 1870 } … … 2488 2488 * 2489 2489 * @since 2.0.0 2490 2490 * 2491 * @param WP_Query &$this The WP_Query instance (passed by reference).2491 * @param WP_Query $this The WP_Query instance (passed by reference). 2492 2492 */ 2493 2493 do_action_ref_array( 'pre_get_posts', array( &$this ) ); 2494 2494 … … 2792 2792 * @since 3.0.0 2793 2793 * 2794 2794 * @param string $search Search SQL for WHERE clause. 2795 * @param WP_Query $this The current WP_Query object.2795 * @param WP_Query $this The WP_Query instance (passed by reference). 2796 2796 */ 2797 2797 $search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) ); 2798 2798 } … … 3179 3179 * @since 1.5.0 3180 3180 * 3181 3181 * @param string $where The WHERE clause of the query. 3182 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3182 * @param WP_Query $this The WP_Query instance (passed by reference). 3183 3183 */ 3184 3184 $where = apply_filters_ref_array( 'posts_where', array( $where, &$this ) ); 3185 3185 … … 3189 3189 * @since 1.5.0 3190 3190 * 3191 3191 * @param string $where The JOIN clause of the query. 3192 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3192 * @param WP_Query $this The WP_Query instance (passed by reference). 3193 3193 */ 3194 3194 $join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) ); 3195 3195 } … … 3229 3229 * @since 2.2.0 3230 3230 * 3231 3231 * @param string $cjoin The JOIN clause of the query. 3232 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3232 * @param WP_Query $this The WP_Query instance (passed by reference). 3233 3233 */ 3234 3234 $cjoin = apply_filters_ref_array( 'comment_feed_join', array( $cjoin, &$this ) ); 3235 3235 … … 3239 3239 * @since 2.2.0 3240 3240 * 3241 3241 * @param string $cwhere The WHERE clause of the query. 3242 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3242 * @param WP_Query $this The WP_Query instance (passed by reference). 3243 3243 */ 3244 3244 $cwhere = apply_filters_ref_array( 'comment_feed_where', array( $cwhere, &$this ) ); 3245 3245 … … 3249 3249 * @since 2.2.0 3250 3250 * 3251 3251 * @param string $cgroupby The GROUP BY clause of the query. 3252 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3252 * @param WP_Query $this The WP_Query instance (passed by reference). 3253 3253 */ 3254 3254 $cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( $cgroupby, &$this ) ); 3255 3255 … … 3259 3259 * @since 2.8.0 3260 3260 * 3261 3261 * @param string $corderby The ORDER BY clause of the query. 3262 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3262 * @param WP_Query $this The WP_Query instance (passed by reference). 3263 3263 */ 3264 3264 $corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) ); 3265 3265 … … 3269 3269 * @since 2.8.0 3270 3270 * 3271 3271 * @param string $climits The JOIN clause of the query. 3272 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3272 * @param WP_Query $this The WP_Query instance (passed by reference). 3273 3273 */ 3274 3274 $climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option('posts_per_rss'), &$this ) ); 3275 3275 } … … 3309 3309 * @since 1.5.0 3310 3310 * 3311 3311 * @param string $where The WHERE clause of the query. 3312 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3312 * @param WP_Query $this The WP_Query instance (passed by reference). 3313 3313 */ 3314 3314 $where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); 3315 3315 … … 3319 3319 * @since 2.0.0 3320 3320 * 3321 3321 * @param string $groupby The GROUP BY clause of the query. 3322 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3322 * @param WP_Query $this The WP_Query instance (passed by reference). 3323 3323 */ 3324 3324 $groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); 3325 3325 … … 3331 3331 * @since 1.5.0 3332 3332 * 3333 3333 * @param string $join The JOIN clause of the query. 3334 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3334 * @param WP_Query $this The WP_Query instance (passed by reference). 3335 3335 */ 3336 3336 $join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); 3337 3337 … … 3341 3341 * @since 1.5.1 3342 3342 * 3343 3343 * @param string $orderby The ORDER BY clause of the query. 3344 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3344 * @param WP_Query $this The WP_Query instance (passed by reference). 3345 3345 */ 3346 3346 $orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); 3347 3347 … … 3351 3351 * @since 2.1.0 3352 3352 * 3353 3353 * @param string $distinct The DISTINCT clause of the query. 3354 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3354 * @param WP_Query $this The WP_Query instance (passed by reference). 3355 3355 */ 3356 3356 $distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); 3357 3357 … … 3361 3361 * @since 2.1.0 3362 3362 * 3363 3363 * @param string $limits The LIMIT clause of the query. 3364 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3364 * @param WP_Query $this The WP_Query instance (passed by reference). 3365 3365 */ 3366 3366 $limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); 3367 3367 … … 3371 3371 * @since 2.1.0 3372 3372 * 3373 3373 * @param string $fields The SELECT clause of the query. 3374 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3374 * @param WP_Query $this The WP_Query instance (passed by reference). 3375 3375 */ 3376 3376 $fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); 3377 3377 … … 3384 3384 * @since 3.1.0 3385 3385 * 3386 3386 * @param array $clauses The list of clauses for the query. 3387 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3387 * @param WP_Query $this The WP_Query instance (passed by reference). 3388 3388 */ 3389 3389 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); 3390 3390 … … 3421 3421 * @since 2.5.0 3422 3422 * 3423 3423 * @param string $where The WHERE clause of the query. 3424 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3424 * @param WP_Query $this The WP_Query instance (passed by reference). 3425 3425 */ 3426 3426 $where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); 3427 3427 … … 3433 3433 * @since 2.5.0 3434 3434 * 3435 3435 * @param string $groupby The GROUP BY clause of the query. 3436 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3436 * @param WP_Query $this The WP_Query instance (passed by reference). 3437 3437 */ 3438 3438 $groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); 3439 3439 … … 3445 3445 * @since 2.5.0 3446 3446 * 3447 3447 * @param string $join The JOIN clause of the query. 3448 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3448 * @param WP_Query $this The WP_Query instance (passed by reference). 3449 3449 */ 3450 3450 $join = apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); 3451 3451 … … 3457 3457 * @since 2.5.0 3458 3458 * 3459 3459 * @param string $orderby The ORDER BY clause of the query. 3460 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3460 * @param WP_Query $this The WP_Query instance (passed by reference). 3461 3461 */ 3462 3462 $orderby = apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); 3463 3463 … … 3469 3469 * @since 2.5.0 3470 3470 * 3471 3471 * @param string $distinct The DISTINCT clause of the query. 3472 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3472 * @param WP_Query $this The WP_Query instance (passed by reference). 3473 3473 */ 3474 3474 $distinct = apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); 3475 3475 … … 3481 3481 * @since 2.5.0 3482 3482 * 3483 3483 * @param string $fields The SELECT clause of the query. 3484 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3484 * @param WP_Query $this The WP_Query instance (passed by reference). 3485 3485 */ 3486 3486 $fields = apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); 3487 3487 … … 3493 3493 * @since 2.5.0 3494 3494 * 3495 3495 * @param string $limits The LIMIT clause of the query. 3496 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3496 * @param WP_Query $this The WP_Query instance (passed by reference). 3497 3497 */ 3498 3498 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); 3499 3499 … … 3508 3508 * @since 3.1.0 3509 3509 * 3510 3510 * @param array $pieces The pieces of the query. 3511 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3511 * @param WP_Query $this The WP_Query instance (passed by reference). 3512 3512 */ 3513 3513 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); 3514 3514 … … 3539 3539 * @since 2.0.0 3540 3540 * 3541 3541 * @param array $request The complete SQL query. 3542 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3542 * @param WP_Query $this The WP_Query instance (passed by reference). 3543 3543 */ 3544 3544 $this->request = apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); 3545 3545 } … … 3625 3625 * @since 2.3.0 3626 3626 * 3627 3627 * @param array $posts The post results array. 3628 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3628 * @param WP_Query $this The WP_Query instance (passed by reference). 3629 3629 */ 3630 3630 $this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); 3631 3631 } … … 3696 3696 * 3697 3697 * @since 2.7.0 3698 3698 * 3699 * @param WP_Post $post_preview 3700 * @param WP_Query &$this The WP_Query instance (passed by reference).3699 * @param WP_Post $post_preview The Post object. 3700 * @param WP_Query $this The WP_Query instance (passed by reference). 3701 3701 */ 3702 3702 $this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) ); 3703 3703 } … … 3757 3757 * @since 1.5.0 3758 3758 * 3759 3759 * @param array $posts The array of retrieved posts. 3760 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3760 * @param WP_Query $this The WP_Query instance (passed by reference). 3761 3761 */ 3762 3762 $this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); 3763 3763 } … … 3812 3812 * @since 2.1.0 3813 3813 * 3814 3814 * @param string $found_posts The query to run to find the found posts. 3815 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3815 * @param WP_Query $this The WP_Query instance (passed by reference). 3816 3816 */ 3817 3817 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); 3818 3818 } else { … … 3825 3825 * @since 2.1.0 3826 3826 * 3827 3827 * @param int $found_posts The number of posts found. 3828 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3828 * @param WP_Query $this The WP_Query instance (passed by reference). 3829 3829 */ 3830 3830 $this->found_posts = apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); 3831 3831 … … 3870 3870 * 3871 3871 * @since 2.0.0 3872 3872 * 3873 * @param WP_Query &$this The WP_Query instance (passed by reference).3873 * @param WP_Query $this The WP_Query instance (passed by reference). 3874 3874 */ 3875 3875 do_action_ref_array( 'loop_start', array( &$this ) ); 3876 3876 … … 3897 3897 * 3898 3898 * @since 2.0.0 3899 3899 * 3900 * @param WP_Query &$this The WP_Query instance (passed by reference).3900 * @param WP_Query $this The WP_Query instance (passed by reference). 3901 3901 */ 3902 3902 do_action_ref_array( 'loop_end', array( &$this ) ); 3903 3903 // Do some cleaning up after the loop … … 4823 4823 * @since 2.8.0 4824 4824 * @since 4.1.0 Introduced `$this` parameter. 4825 4825 * 4826 * @param WP_Post &$post The Post object (passed by reference).4827 * @param WP_Query &$this The current Query object (passed by reference).4826 * @param WP_Post $post The Post object (passed by reference). 4827 * @param WP_Query $this The current Query object (passed by reference). 4828 4828 */ 4829 4829 do_action_ref_array( 'the_post', array( &$post, &$this ) ); 4830 4830