Changeset 41686 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 10/02/2017 10:01:23 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-query.php (modified) (34 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r41162 r41686 1002 1002 * @since 1.5.0 1003 1003 * 1004 * @param WP_Query &$this The WP_Query instance (passed by reference).1004 * @param WP_Query $this The WP_Query instance (passed by reference). 1005 1005 */ 1006 1006 do_action_ref_array( 'parse_query', array( &$this ) ); … … 1630 1630 * @since 2.0.0 1631 1631 * 1632 * @param WP_Query &$this The WP_Query instance (passed by reference).1632 * @param WP_Query $this The WP_Query instance (passed by reference). 1633 1633 */ 1634 1634 do_action_ref_array( 'pre_get_posts', array( &$this ) ); … … 2372 2372 * 2373 2373 * @param string $where The WHERE clause of the query. 2374 * @param WP_Query &$this The WP_Query instance (passed by reference).2374 * @param WP_Query $this The WP_Query instance (passed by reference). 2375 2375 */ 2376 2376 $where = apply_filters_ref_array( 'posts_where', array( $where, &$this ) ); … … 2382 2382 * 2383 2383 * @param string $join The JOIN clause of the query. 2384 * @param WP_Query &$this The WP_Query instance (passed by reference).2384 * @param WP_Query $this The WP_Query instance (passed by reference). 2385 2385 */ 2386 2386 $join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) ); … … 2422 2422 * 2423 2423 * @param string $cjoin The JOIN clause of the query. 2424 * @param WP_Query &$this The WP_Query instance (passed by reference).2424 * @param WP_Query $this The WP_Query instance (passed by reference). 2425 2425 */ 2426 2426 $cjoin = apply_filters_ref_array( 'comment_feed_join', array( $cjoin, &$this ) ); … … 2432 2432 * 2433 2433 * @param string $cwhere The WHERE clause of the query. 2434 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2434 * @param WP_Query $this The WP_Query instance (passed by reference). 2435 2435 */ 2436 2436 $cwhere = apply_filters_ref_array( 'comment_feed_where', array( $cwhere, &$this ) ); … … 2442 2442 * 2443 2443 * @param string $cgroupby The GROUP BY clause of the query. 2444 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2444 * @param WP_Query $this The WP_Query instance (passed by reference). 2445 2445 */ 2446 2446 $cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( $cgroupby, &$this ) ); … … 2452 2452 * 2453 2453 * @param string $corderby The ORDER BY clause of the query. 2454 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2454 * @param WP_Query $this The WP_Query instance (passed by reference). 2455 2455 */ 2456 2456 $corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) ); … … 2462 2462 * 2463 2463 * @param string $climits The JOIN clause of the query. 2464 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2464 * @param WP_Query $this The WP_Query instance (passed by reference). 2465 2465 */ 2466 2466 $climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option('posts_per_rss'), &$this ) ); … … 2503 2503 * 2504 2504 * @param string $where The WHERE clause of the query. 2505 * @param WP_Query &$this The WP_Query instance (passed by reference).2505 * @param WP_Query $this The WP_Query instance (passed by reference). 2506 2506 */ 2507 2507 $where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); … … 2513 2513 * 2514 2514 * @param string $groupby The GROUP BY clause of the query. 2515 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2515 * @param WP_Query $this The WP_Query instance (passed by reference). 2516 2516 */ 2517 2517 $groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); … … 2525 2525 * 2526 2526 * @param string $join The JOIN clause of the query. 2527 * @param WP_Query &$this The WP_Query instance (passed by reference).2527 * @param WP_Query $this The WP_Query instance (passed by reference). 2528 2528 */ 2529 2529 $join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); … … 2535 2535 * 2536 2536 * @param string $orderby The ORDER BY clause of the query. 2537 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2537 * @param WP_Query $this The WP_Query instance (passed by reference). 2538 2538 */ 2539 2539 $orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); … … 2545 2545 * 2546 2546 * @param string $distinct The DISTINCT clause of the query. 2547 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2547 * @param WP_Query $this The WP_Query instance (passed by reference). 2548 2548 */ 2549 2549 $distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); … … 2555 2555 * 2556 2556 * @param string $limits The LIMIT clause of the query. 2557 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2557 * @param WP_Query $this The WP_Query instance (passed by reference). 2558 2558 */ 2559 2559 $limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); … … 2565 2565 * 2566 2566 * @param string $fields The SELECT clause of the query. 2567 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2567 * @param WP_Query $this The WP_Query instance (passed by reference). 2568 2568 */ 2569 2569 $fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); … … 2578 2578 * 2579 2579 * @param array $clauses The list of clauses for the query. 2580 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2580 * @param WP_Query $this The WP_Query instance (passed by reference). 2581 2581 */ 2582 2582 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); … … 2615 2615 * 2616 2616 * @param string $where The WHERE clause of the query. 2617 * @param WP_Query &$this The WP_Query instance (passed by reference).2617 * @param WP_Query $this The WP_Query instance (passed by reference). 2618 2618 */ 2619 2619 $where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); … … 2627 2627 * 2628 2628 * @param string $groupby The GROUP BY clause of the query. 2629 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2629 * @param WP_Query $this The WP_Query instance (passed by reference). 2630 2630 */ 2631 2631 $groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); … … 2639 2639 * 2640 2640 * @param string $join The JOIN clause of the query. 2641 * @param WP_Query &$this The WP_Query instance (passed by reference).2641 * @param WP_Query $this The WP_Query instance (passed by reference). 2642 2642 */ 2643 2643 $join = apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); … … 2651 2651 * 2652 2652 * @param string $orderby The ORDER BY clause of the query. 2653 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2653 * @param WP_Query $this The WP_Query instance (passed by reference). 2654 2654 */ 2655 2655 $orderby = apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); … … 2663 2663 * 2664 2664 * @param string $distinct The DISTINCT clause of the query. 2665 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2665 * @param WP_Query $this The WP_Query instance (passed by reference). 2666 2666 */ 2667 2667 $distinct = apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); … … 2675 2675 * 2676 2676 * @param string $fields The SELECT clause of the query. 2677 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2677 * @param WP_Query $this The WP_Query instance (passed by reference). 2678 2678 */ 2679 2679 $fields = apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); … … 2687 2687 * 2688 2688 * @param string $limits The LIMIT clause of the query. 2689 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2689 * @param WP_Query $this The WP_Query instance (passed by reference). 2690 2690 */ 2691 2691 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); … … 2702 2702 * 2703 2703 * @param array $pieces The pieces of the query. 2704 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2704 * @param WP_Query $this The WP_Query instance (passed by reference). 2705 2705 */ 2706 2706 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); … … 2733 2733 * 2734 2734 * @param string $request The complete SQL query. 2735 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2735 * @param WP_Query $this The WP_Query instance (passed by reference). 2736 2736 */ 2737 2737 $this->request = apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); … … 2846 2846 * 2847 2847 * @param array $posts The post results array. 2848 * @param WP_Query &$this The WP_Query instance (passed by reference).2848 * @param WP_Query $this The WP_Query instance (passed by reference). 2849 2849 */ 2850 2850 $this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); … … 2918 2918 * 2919 2919 * @param WP_Post $post_preview The Post object. 2920 * @param WP_Query &$thisThe WP_Query instance (passed by reference).2920 * @param WP_Query $this The WP_Query instance (passed by reference). 2921 2921 */ 2922 2922 $this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) ); … … 2978 2978 * 2979 2979 * @param array $posts The array of retrieved posts. 2980 * @param WP_Query &$this The WP_Query instance (passed by reference).2980 * @param WP_Query $this The WP_Query instance (passed by reference). 2981 2981 */ 2982 2982 $this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); … … 3029 3029 * 3030 3030 * @param string $found_posts The query to run to find the found posts. 3031 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3031 * @param WP_Query $this The WP_Query instance (passed by reference). 3032 3032 */ 3033 3033 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); … … 3042 3042 * 3043 3043 * @param int $found_posts The number of posts found. 3044 * @param WP_Query &$thisThe WP_Query instance (passed by reference).3044 * @param WP_Query $this The WP_Query instance (passed by reference). 3045 3045 */ 3046 3046 $this->found_posts = apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); … … 3085 3085 * @since 2.0.0 3086 3086 * 3087 * @param WP_Query &$this The WP_Query instance (passed by reference).3087 * @param WP_Query $this The WP_Query instance (passed by reference). 3088 3088 */ 3089 3089 do_action_ref_array( 'loop_start', array( &$this ) ); … … 3111 3111 * @since 2.0.0 3112 3112 * 3113 * @param WP_Query &$this The WP_Query instance (passed by reference).3113 * @param WP_Query $this The WP_Query instance (passed by reference). 3114 3114 */ 3115 3115 do_action_ref_array( 'loop_end', array( &$this ) ); … … 4033 4033 * @since 4.1.0 Introduced `$this` parameter. 4034 4034 * 4035 * @param WP_Post &$post The Post object (passed by reference).4036 * @param WP_Query &$this The current Query object (passed by reference).4035 * @param WP_Post $post The Post object (passed by reference). 4036 * @param WP_Query $this The current Query object (passed by reference). 4037 4037 */ 4038 4038 do_action_ref_array( 'the_post', array( &$post, &$this ) );
Note: See TracChangeset
for help on using the changeset viewer.