Ticket #52243: 52243.diff
File 52243.diff, 37.6 KB (added by , 4 years ago) |
---|
-
src/wp-admin/includes/class-wp-screen.php
794 794 * {@see get_current_screen()->remove_help_tab()} instead. 795 795 * 796 796 * @param array $old_compat_help Old contextual help. 797 * @param WP_Screen $ thisCurrent WP_Screen instance.797 * @param WP_Screen $screen Current WP_Screen instance. 798 798 */ 799 799 self::$_old_compat_help = apply_filters_deprecated( 800 800 'contextual_help_list', … … 814 814 * 815 815 * @param string $old_help Help text that appears on the screen. 816 816 * @param string $screen_id Screen ID. 817 * @param WP_Screen $ thisCurrent WP_Screen instance.817 * @param WP_Screen $screen Current WP_Screen instance. 818 818 */ 819 819 $old_help = apply_filters_deprecated( 820 820 'contextual_help', … … 935 935 * 936 936 * @param array $empty_columns Empty array. 937 937 * @param string $screen_id Screen ID. 938 * @param WP_Screen $ thisCurrent WP_Screen instance.938 * @param WP_Screen $screen Current WP_Screen instance. 939 939 */ 940 940 $columns = apply_filters( 'screen_layout_columns', array(), $this->id, $this ); 941 941 … … 1087 1087 * 1088 1088 * @param bool $show_button Whether to show Screen Options submit button. 1089 1089 * Default false. 1090 * @param WP_Screen $ thisCurrent WP_Screen instance.1090 * @param WP_Screen $screen Current WP_Screen instance. 1091 1091 */ 1092 1092 $show_button = apply_filters( 'screen_options_show_submit', false, $this ); 1093 1093 -
src/wp-admin/includes/class-wp-upgrader.php
262 262 * @param bool $reply Whether to bail without returning the package. 263 263 * Default false. 264 264 * @param string $package The package file name. 265 * @param WP_Upgrader $ thisThe WP_Upgrader instance.265 * @param WP_Upgrader $upgrader The WP_Upgrader instance. 266 266 * @param array $hook_extra Extra arguments passed to hooked filters. 267 267 */ 268 268 $reply = apply_filters( 'upgrader_pre_download', false, $package, $this, $hook_extra ); … … 521 521 * 522 522 * @param string $source File source location. 523 523 * @param string $remote_source Remote file source location. 524 * @param WP_Upgrader $ thisWP_Upgrader instance.524 * @param WP_Upgrader $upgrader WP_Upgrader instance. 525 525 * @param array $hook_extra Extra arguments passed to hooked filters. 526 526 */ 527 527 $source = apply_filters( 'upgrader_source_selection', $source, $remote_source, $this, $args['hook_extra'] ); -
src/wp-includes/class-wp-comment-query.php
410 410 * @param array|int|null $comment_data Return an array of comment data to short-circuit WP's comment query, 411 411 * the comment count as an integer if `$this->query_vars['count']` is set, 412 412 * or null to allow WP to run its normal queries. 413 * @param WP_Comment_Query $ thisThe WP_Comment_Query instance, passed by reference.413 * @param WP_Comment_Query $query The WP_Comment_Query instance, passed by reference. 414 414 */ 415 415 $comment_data = apply_filters_ref_array( 'comments_pre_query', array( $comment_data, &$this ) ); 416 416 … … 494 494 * @since 3.1.0 495 495 * 496 496 * @param WP_Comment[] $_comments An array of comments. 497 * @param WP_Comment_Query $ thisCurrent instance of WP_Comment_Query (passed by reference).497 * @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference). 498 498 */ 499 499 $_comments = apply_filters_ref_array( 'the_comments', array( $_comments, &$this ) ); 500 500 … … 904 904 * @since 3.1.0 905 905 * 906 906 * @param string[] $pieces An associative array of comment query clauses. 907 * @param WP_Comment_Query $ thisCurrent instance of WP_Comment_Query (passed by reference).907 * @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference). 908 908 */ 909 909 $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $pieces ), &$this ) ); 910 910 -
src/wp-includes/class-wp-customize-setting.php
606 606 * 607 607 * @param WP_Error $validity Filtered from `true` to `WP_Error` when invalid. 608 608 * @param mixed $value Value of the setting. 609 * @param WP_Customize_Setting $ thisWP_Customize_Setting instance.609 * @param WP_Customize_Setting $setting WP_Customize_Setting instance. 610 610 */ 611 611 $validity = apply_filters( "customize_validate_{$this->id}", $validity, $value, $this ); 612 612 … … 762 762 * @since 4.6.0 Added the `$this` setting instance as the second parameter. 763 763 * 764 764 * @param mixed $default The setting default value. Default empty. 765 * @param WP_Customize_Setting $ thisThe setting instance.765 * @param WP_Customize_Setting $setting The setting instance. 766 766 */ 767 767 $value = apply_filters( "customize_value_{$id_base}", $value, $this ); 768 768 } elseif ( $this->is_multidimensional_aggregated ) { … … 795 795 * 796 796 * @since 3.4.0 797 797 * 798 * @param mixed $value The setting value.799 * @param WP_Customize_Setting $ thisWP_Customize_Setting instance.798 * @param mixed $value The setting value. 799 * @param WP_Customize_Setting $setting WP_Customize_Setting instance. 800 800 */ 801 801 $value = apply_filters( "customize_sanitize_js_{$this->id}", $this->value(), $this ); 802 802 -
src/wp-includes/class-wp-network-query.php
227 227 * @param array|int|null $network_data Return an array of network data to short-circuit WP's network query, 228 228 * the network count as an integer if `$this->query_vars['count']` is set, 229 229 * or null to allow WP to run its normal queries. 230 * @param WP_Network_Query $ thisThe WP_Network_Query instance, passed by reference.230 * @param WP_Network_Query $query The WP_Network_Query instance, passed by reference. 231 231 */ 232 232 $network_data = apply_filters_ref_array( 'networks_pre_query', array( $network_data, &$this ) ); 233 233 … … 303 303 * @since 4.6.0 304 304 * 305 305 * @param WP_Network[] $_networks An array of WP_Network objects. 306 * @param WP_Network_Query $ thisCurrent instance of WP_Network_Query (passed by reference).306 * @param WP_Network_Query $query Current instance of WP_Network_Query (passed by reference). 307 307 */ 308 308 $_networks = apply_filters_ref_array( 'the_networks', array( $_networks, &$this ) ); 309 309 … … 446 446 * @since 4.6.0 447 447 * 448 448 * @param string[] $pieces An associative array of network query clauses. 449 * @param WP_Network_Query $ thisCurrent instance of WP_Network_Query (passed by reference).449 * @param WP_Network_Query $query Current instance of WP_Network_Query (passed by reference). 450 450 */ 451 451 $clauses = apply_filters_ref_array( 'networks_clauses', array( compact( $pieces ), &$this ) ); 452 452 -
src/wp-includes/class-wp-query.php
1078 1078 * 1079 1079 * @since 1.5.0 1080 1080 * 1081 * @param WP_Query $ thisThe WP_Query instance (passed by reference).1081 * @param WP_Query $query The WP_Query instance (passed by reference). 1082 1082 */ 1083 1083 do_action_ref_array( 'parse_query', array( &$this ) ); 1084 1084 } … … 1319 1319 * 1320 1320 * @since 3.7.0 1321 1321 * 1322 * @param WP_Query $ thisThe WP_Query instance.1322 * @param WP_Query $query The WP_Query instance. 1323 1323 */ 1324 1324 do_action( 'parse_tax_query', $this ); 1325 1325 } … … 1718 1718 * 1719 1719 * @since 5.5.0 1720 1720 * 1721 * @param WP_Query $ thisThe WP_Query instance (passed by reference).1721 * @param WP_Query $query The WP_Query instance (passed by reference). 1722 1722 */ 1723 1723 do_action_ref_array( 'set_404', array( $this ) ); 1724 1724 } … … 1779 1779 * 1780 1780 * @since 2.0.0 1781 1781 * 1782 * @param WP_Query $ thisThe WP_Query instance (passed by reference).1782 * @param WP_Query $query The WP_Query instance (passed by reference). 1783 1783 */ 1784 1784 do_action_ref_array( 'pre_get_posts', array( &$this ) ); 1785 1785 … … 2126 2126 * @since 3.0.0 2127 2127 * 2128 2128 * @param string $search Search SQL for WHERE clause. 2129 * @param WP_Query $ thisThe current WP_Query object.2129 * @param WP_Query $query The current WP_Query object. 2130 2130 */ 2131 2131 $search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) ); 2132 2132 } … … 2381 2381 * @since 3.7.0 2382 2382 * 2383 2383 * @param string $search_orderby The ORDER BY clause. 2384 * @param WP_Query $ thisThe current WP_Query instance.2384 * @param WP_Query $query The current WP_Query instance. 2385 2385 */ 2386 2386 $search_orderby = apply_filters( 'posts_search_orderby', $search_orderby, $this ); 2387 2387 } … … 2563 2563 * @since 1.5.0 2564 2564 * 2565 2565 * @param string $where The WHERE clause of the query. 2566 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2566 * @param WP_Query $query The WP_Query instance (passed by reference). 2567 2567 */ 2568 2568 $where = apply_filters_ref_array( 'posts_where', array( $where, &$this ) ); 2569 2569 … … 2572 2572 * 2573 2573 * @since 1.5.0 2574 2574 * 2575 * @param string $join The JOIN clause of the query.2576 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2575 * @param string $join The JOIN clause of the query. 2576 * @param WP_Query $query The WP_Query instance (passed by reference). 2577 2577 */ 2578 2578 $join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) ); 2579 2579 } … … 2614 2614 * @since 2.2.0 2615 2615 * 2616 2616 * @param string $cjoin The JOIN clause of the query. 2617 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2617 * @param WP_Query $query The WP_Query instance (passed by reference). 2618 2618 */ 2619 2619 $cjoin = apply_filters_ref_array( 'comment_feed_join', array( $cjoin, &$this ) ); 2620 2620 … … 2624 2624 * @since 2.2.0 2625 2625 * 2626 2626 * @param string $cwhere The WHERE clause of the query. 2627 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2627 * @param WP_Query $query The WP_Query instance (passed by reference). 2628 2628 */ 2629 2629 $cwhere = apply_filters_ref_array( 'comment_feed_where', array( $cwhere, &$this ) ); 2630 2630 … … 2634 2634 * @since 2.2.0 2635 2635 * 2636 2636 * @param string $cgroupby The GROUP BY clause of the query. 2637 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2637 * @param WP_Query $query The WP_Query instance (passed by reference). 2638 2638 */ 2639 2639 $cgroupby = apply_filters_ref_array( 'comment_feed_groupby', array( $cgroupby, &$this ) ); 2640 2640 … … 2644 2644 * @since 2.8.0 2645 2645 * 2646 2646 * @param string $corderby The ORDER BY clause of the query. 2647 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2647 * @param WP_Query $query The WP_Query instance (passed by reference). 2648 2648 */ 2649 2649 $corderby = apply_filters_ref_array( 'comment_feed_orderby', array( 'comment_date_gmt DESC', &$this ) ); 2650 2650 … … 2654 2654 * @since 2.8.0 2655 2655 * 2656 2656 * @param string $climits The JOIN clause of the query. 2657 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2657 * @param WP_Query $query The WP_Query instance (passed by reference). 2658 2658 */ 2659 2659 $climits = apply_filters_ref_array( 'comment_feed_limits', array( 'LIMIT ' . get_option( 'posts_per_rss' ), &$this ) ); 2660 2660 } … … 2699 2699 * @since 1.5.0 2700 2700 * 2701 2701 * @param string $where The WHERE clause of the query. 2702 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2702 * @param WP_Query $query The WP_Query instance (passed by reference). 2703 2703 */ 2704 2704 $where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) ); 2705 2705 … … 2709 2709 * @since 2.0.0 2710 2710 * 2711 2711 * @param string $groupby The GROUP BY clause of the query. 2712 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2712 * @param WP_Query $query The WP_Query instance (passed by reference). 2713 2713 */ 2714 2714 $groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) ); 2715 2715 … … 2720 2720 * 2721 2721 * @since 1.5.0 2722 2722 * 2723 * @param string $join The JOIN clause of the query.2724 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2723 * @param string $join The JOIN clause of the query. 2724 * @param WP_Query $query The WP_Query instance (passed by reference). 2725 2725 */ 2726 2726 $join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) ); 2727 2727 … … 2731 2731 * @since 1.5.1 2732 2732 * 2733 2733 * @param string $orderby The ORDER BY clause of the query. 2734 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2734 * @param WP_Query $query The WP_Query instance (passed by reference). 2735 2735 */ 2736 2736 $orderby = apply_filters_ref_array( 'posts_orderby', array( $orderby, &$this ) ); 2737 2737 … … 2741 2741 * @since 2.1.0 2742 2742 * 2743 2743 * @param string $distinct The DISTINCT clause of the query. 2744 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2744 * @param WP_Query $query The WP_Query instance (passed by reference). 2745 2745 */ 2746 2746 $distinct = apply_filters_ref_array( 'posts_distinct', array( $distinct, &$this ) ); 2747 2747 … … 2751 2751 * @since 2.1.0 2752 2752 * 2753 2753 * @param string $limits The LIMIT clause of the query. 2754 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2754 * @param WP_Query $query The WP_Query instance (passed by reference). 2755 2755 */ 2756 2756 $limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) ); 2757 2757 … … 2761 2761 * @since 2.1.0 2762 2762 * 2763 2763 * @param string $fields The SELECT clause of the query. 2764 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2764 * @param WP_Query $query The WP_Query instance (passed by reference). 2765 2765 */ 2766 2766 $fields = apply_filters_ref_array( 'posts_fields', array( $fields, &$this ) ); 2767 2767 … … 2774 2774 * @since 3.1.0 2775 2775 * 2776 2776 * @param string[] $clauses Associative array of the clauses for the query. 2777 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2777 * @param WP_Query $query The WP_Query instance (passed by reference). 2778 2778 */ 2779 2779 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $pieces ), &$this ) ); 2780 2780 … … 2811 2811 * @since 2.5.0 2812 2812 * 2813 2813 * @param string $where The WHERE clause of the query. 2814 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2814 * @param WP_Query $query The WP_Query instance (passed by reference). 2815 2815 */ 2816 2816 $where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) ); 2817 2817 … … 2823 2823 * @since 2.5.0 2824 2824 * 2825 2825 * @param string $groupby The GROUP BY clause of the query. 2826 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2826 * @param WP_Query $query The WP_Query instance (passed by reference). 2827 2827 */ 2828 2828 $groupby = apply_filters_ref_array( 'posts_groupby_request', array( $groupby, &$this ) ); 2829 2829 … … 2834 2834 * 2835 2835 * @since 2.5.0 2836 2836 * 2837 * @param string $join The JOIN clause of the query.2838 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2837 * @param string $join The JOIN clause of the query. 2838 * @param WP_Query $query The WP_Query instance (passed by reference). 2839 2839 */ 2840 2840 $join = apply_filters_ref_array( 'posts_join_request', array( $join, &$this ) ); 2841 2841 … … 2847 2847 * @since 2.5.0 2848 2848 * 2849 2849 * @param string $orderby The ORDER BY clause of the query. 2850 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2850 * @param WP_Query $query The WP_Query instance (passed by reference). 2851 2851 */ 2852 2852 $orderby = apply_filters_ref_array( 'posts_orderby_request', array( $orderby, &$this ) ); 2853 2853 … … 2859 2859 * @since 2.5.0 2860 2860 * 2861 2861 * @param string $distinct The DISTINCT clause of the query. 2862 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2862 * @param WP_Query $query The WP_Query instance (passed by reference). 2863 2863 */ 2864 2864 $distinct = apply_filters_ref_array( 'posts_distinct_request', array( $distinct, &$this ) ); 2865 2865 … … 2871 2871 * @since 2.5.0 2872 2872 * 2873 2873 * @param string $fields The SELECT clause of the query. 2874 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2874 * @param WP_Query $query The WP_Query instance (passed by reference). 2875 2875 */ 2876 2876 $fields = apply_filters_ref_array( 'posts_fields_request', array( $fields, &$this ) ); 2877 2877 … … 2883 2883 * @since 2.5.0 2884 2884 * 2885 2885 * @param string $limits The LIMIT clause of the query. 2886 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2886 * @param WP_Query $query The WP_Query instance (passed by reference). 2887 2887 */ 2888 2888 $limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) ); 2889 2889 … … 2898 2898 * @since 3.1.0 2899 2899 * 2900 2900 * @param string[] $pieces Associative array of the pieces of the query. 2901 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2901 * @param WP_Query $query The WP_Query instance (passed by reference). 2902 2902 */ 2903 2903 $clauses = (array) apply_filters_ref_array( 'posts_clauses_request', array( compact( $pieces ), &$this ) ); 2904 2904 … … 2933 2933 * @since 2.0.0 2934 2934 * 2935 2935 * @param string $request The complete SQL query. 2936 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2936 * @param WP_Query $query The WP_Query instance (passed by reference). 2937 2937 */ 2938 2938 $this->request = apply_filters_ref_array( 'posts_request', array( $this->request, &$this ) ); 2939 2939 } … … 2952 2952 * 2953 2953 * @param WP_Post[]|int[]|null $posts Return an array of post data to short-circuit WP's query, 2954 2954 * or null to allow WP to run its normal queries. 2955 * @param WP_Query $ thisThe WP_Query instance (passed by reference).2955 * @param WP_Query $query The WP_Query instance (passed by reference). 2956 2956 */ 2957 2957 $this->posts = apply_filters_ref_array( 'posts_pre_query', array( null, &$this ) ); 2958 2958 … … 3002 3002 * @since 3.4.0 3003 3003 * 3004 3004 * @param bool $split_the_query Whether or not to split the query. 3005 * @param WP_Query $ thisThe WP_Query instance.3005 * @param WP_Query $query The WP_Query instance. 3006 3006 */ 3007 3007 $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this ); 3008 3008 … … 3017 3017 * @since 3.4.0 3018 3018 * 3019 3019 * @param string $request The post ID request. 3020 * @param WP_Query $ thisThe WP_Query instance.3020 * @param WP_Query $query The WP_Query instance. 3021 3021 */ 3022 3022 $this->request = apply_filters( 'posts_request_ids', $this->request, $this ); 3023 3023 … … 3049 3049 * @since 2.3.0 3050 3050 * 3051 3051 * @param WP_Post[] $posts Array of post objects. 3052 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3052 * @param WP_Query $query The WP_Query instance (passed by reference). 3053 3053 */ 3054 3054 $this->posts = apply_filters_ref_array( 'posts_results', array( $this->posts, &$this ) ); 3055 3055 } … … 3132 3132 * @since 2.7.0 3133 3133 * 3134 3134 * @param WP_Post $post_preview The Post object. 3135 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3135 * @param WP_Query $query The WP_Query instance (passed by reference). 3136 3136 */ 3137 3137 $this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) ); 3138 3138 } … … 3195 3195 * @since 1.5.0 3196 3196 * 3197 3197 * @param WP_Post[] $posts Array of post objects. 3198 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3198 * @param WP_Query $query The WP_Query instance (passed by reference). 3199 3199 */ 3200 3200 $this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) ); 3201 3201 } … … 3253 3253 * @since 2.1.0 3254 3254 * 3255 3255 * @param string $found_posts_query The query to run to find the found posts. 3256 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3256 * @param WP_Query $query The WP_Query instance (passed by reference). 3257 3257 */ 3258 3258 $found_posts_query = apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ); 3259 3259 … … 3276 3276 * @since 2.1.0 3277 3277 * 3278 3278 * @param int $found_posts The number of posts found. 3279 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3279 * @param WP_Query $query The WP_Query instance (passed by reference). 3280 3280 */ 3281 3281 $this->found_posts = (int) apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); 3282 3282 … … 3321 3321 * 3322 3322 * @since 2.0.0 3323 3323 * 3324 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3324 * @param WP_Query $query The WP_Query instance (passed by reference). 3325 3325 */ 3326 3326 do_action_ref_array( 'loop_start', array( &$this ) ); 3327 3327 } … … 3348 3348 * 3349 3349 * @since 2.0.0 3350 3350 * 3351 * @param WP_Query $ thisThe WP_Query instance (passed by reference).3351 * @param WP_Query $query The WP_Query instance (passed by reference). 3352 3352 */ 3353 3353 do_action_ref_array( 'loop_end', array( &$this ) ); 3354 3354 // Do some cleaning up after the loop. … … 3359 3359 * 3360 3360 * @since 4.9.0 3361 3361 * 3362 * @param WP_Query $ thisThe WP_Query instance.3362 * @param WP_Query $query The WP_Query instance. 3363 3363 */ 3364 3364 do_action( 'loop_no_results', $this ); 3365 3365 } … … 4314 4314 * Fires once the post data has been set up. 4315 4315 * 4316 4316 * @since 2.8.0 4317 * @since 4.1.0 Introduced `$ this` parameter.4317 * @since 4.1.0 Introduced `$query` parameter. 4318 4318 * 4319 * @param WP_Post $post The Post object (passed by reference).4320 * @param WP_Query $ thisThe current Query object (passed by reference).4319 * @param WP_Post $post The Post object (passed by reference). 4320 * @param WP_Query $query The current Query object (passed by reference). 4321 4321 */ 4322 4322 do_action_ref_array( 'the_post', array( &$post, &$this ) ); 4323 4323 -
src/wp-includes/class-wp-site-query.php
318 318 * @param array|int|null $site_data Return an array of site data to short-circuit WP's site query, 319 319 * the site count as an integer if `$this->query_vars['count']` is set, 320 320 * or null to run the normal queries. 321 * @param WP_Site_Query $ thisThe WP_Site_Query instance, passed by reference.321 * @param WP_Site_Query $query The WP_Site_Query instance, passed by reference. 322 322 */ 323 323 $site_data = apply_filters_ref_array( 'sites_pre_query', array( $site_data, &$this ) ); 324 324 … … 396 396 * @since 4.6.0 397 397 * 398 398 * @param WP_Site[] $_sites An array of WP_Site objects. 399 * @param WP_Site_Query $ thisCurrent instance of WP_Site_Query (passed by reference).399 * @param WP_Site_Query $query Current instance of WP_Site_Query (passed by reference). 400 400 */ 401 401 $_sites = apply_filters_ref_array( 'the_sites', array( $_sites, &$this ) ); 402 402 … … 600 600 * 601 601 * @param string[] $search_columns Array of column names to be searched. 602 602 * @param string $search Text being searched. 603 * @param WP_Site_Query $ thisThe current WP_Site_Query instance.603 * @param WP_Site_Query $query The current WP_Site_Query instance. 604 604 */ 605 605 $search_columns = apply_filters( 'site_search_columns', $search_columns, $this->query_vars['search'], $this ); 606 606 … … 637 637 * @since 4.6.0 638 638 * 639 639 * @param string[] $pieces An associative array of site query clauses. 640 * @param WP_Site_Query $ thisCurrent instance of WP_Site_Query (passed by reference).640 * @param WP_Site_Query $query Current instance of WP_Site_Query (passed by reference). 641 641 */ 642 642 $clauses = apply_filters_ref_array( 'sites_clauses', array( compact( $pieces ), &$this ) ); 643 643 -
src/wp-includes/class-wp-term-query.php
696 696 * 697 697 * @param array|null $terms Return an array of term data to short-circuit WP's term query, 698 698 * or null to allow WP queries to run normally. 699 * @param WP_Term_Query $ thisThe WP_Term_Query instance, passed by reference.699 * @param WP_Term_Query $query The WP_Term_Query instance, passed by reference. 700 700 */ 701 701 $this->terms = apply_filters_ref_array( 'terms_pre_query', array( $this->terms, &$this ) ); 702 702 -
src/wp-includes/class-wp-theme.php
1258 1258 * @since 4.9.6 1259 1259 * 1260 1260 * @param string[] $post_templates Array of template header names keyed by the template file name. 1261 * @param WP_Theme $th isThe theme object.1261 * @param WP_Theme $theme The theme object. 1262 1262 * @param WP_Post|null $post The post being edited, provided for context, or null. 1263 1263 * @param string $post_type Post type to get the templates for. 1264 1264 */ … … 1274 1274 * @since 4.7.0 Added the `$post_type` parameter. 1275 1275 * 1276 1276 * @param string[] $post_templates Array of template header names keyed by the template file name. 1277 * @param WP_Theme $th isThe theme object.1277 * @param WP_Theme $theme The theme object. 1278 1278 * @param WP_Post|null $post The post being edited, provided for context, or null. 1279 1279 * @param string $post_type Post type to get the templates for. 1280 1280 */ -
src/wp-includes/class-wp-user-query.php
224 224 * 225 225 * @since 4.0.0 226 226 * 227 * @param WP_User_Query $ thisCurrent instance of WP_User_Query (passed by reference).227 * @param WP_User_Query $query Current instance of WP_User_Query (passed by reference). 228 228 */ 229 229 do_action_ref_array( 'pre_get_users', array( &$this ) ); 230 230 … … 544 544 * 545 545 * @param string[] $search_columns Array of column names to be searched. 546 546 * @param string $search Text being searched. 547 * @param WP_User_Query $ thisThe current WP_User_Query instance.547 * @param WP_User_Query $query The current WP_User_Query instance. 548 548 */ 549 549 $search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this ); 550 550 … … 575 575 * 576 576 * @since 3.1.0 577 577 * 578 * @param WP_User_Query $ thisCurrent instance of WP_User_Query (passed by reference).578 * @param WP_User_Query $query Current instance of WP_User_Query (passed by reference). 579 579 */ 580 580 do_action_ref_array( 'pre_user_query', array( &$this ) ); 581 581 } … … 604 604 * 605 605 * @since 5.1.0 606 606 * 607 * @param array|null $results Return an array of user data to short-circuit WP's user query608 * or null to allow WP to run its normal queries.609 * @param WP_User_Query $ thisThe WP_User_Query instance (passed by reference).607 * @param array|null $results Return an array of user data to short-circuit WP's user query 608 * or null to allow WP to run its normal queries. 609 * @param WP_User_Query $query The WP_User_Query instance (passed by reference). 610 610 */ 611 611 $this->results = apply_filters_ref_array( 'users_pre_query', array( null, &$this ) ); 612 612 … … 628 628 * 629 629 * @global wpdb $wpdb WordPress database abstraction object. 630 630 * 631 * @param string $sqlThe SELECT FOUND_ROWS() query for the current WP_User_Query.632 * @param WP_User_Query $ thisThe current WP_User_Query instance.631 * @param string $sql The SELECT FOUND_ROWS() query for the current WP_User_Query. 632 * @param WP_User_Query $query The current WP_User_Query instance. 633 633 */ 634 634 $found_users_query = apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()', $this ); 635 635 -
src/wp-includes/class-wp-widget.php
363 363 * @since 2.8.0 364 364 * 365 365 * @param array $instance The current widget instance's settings. 366 * @param WP_Widget $ thisThe current widget instance.366 * @param WP_Widget $widget The current widget instance. 367 367 * @param array $args An array of default widget arguments. 368 368 */ 369 369 $instance = apply_filters( 'widget_display_callback', $instance, $this, $args ); … … 457 457 * @param array $instance The current widget instance's settings. 458 458 * @param array $new_instance Array of new widget settings. 459 459 * @param array $old_instance Array of old widget settings. 460 * @param WP_Widget $ thisThe current widget instance.460 * @param WP_Widget $widget The current widget instance. 461 461 */ 462 462 $instance = apply_filters( 'widget_update_callback', $instance, $new_instance, $old_instance, $this ); 463 463 if ( false !== $instance ) { … … 510 510 * @since 2.8.0 511 511 * 512 512 * @param array $instance The current widget instance's settings. 513 * @param WP_Widget $ thisThe current widget instance.513 * @param WP_Widget $widget The current widget instance. 514 514 */ 515 515 $instance = apply_filters( 'widget_form_callback', $instance, $this ); 516 516 … … 530 530 * 531 531 * @since 2.8.0 532 532 * 533 * @param WP_Widget $ thisThe widget instance (passed by reference).533 * @param WP_Widget $widget The widget instance (passed by reference). 534 534 * @param null $return Return null if new fields are added. 535 535 * @param array $instance An array of the widget's settings. 536 536 */ -
src/wp-includes/class-wp.php
485 485 * @since 2.8.0 486 486 * 487 487 * @param string[] $headers Associative array of headers to be sent. 488 * @param WP $ thisCurrent WordPress environment instance.488 * @param WP $wp Current WordPress environment instance. 489 489 */ 490 490 $headers = apply_filters( 'wp_headers', $headers, $this ); 491 491 -
src/wp-includes/customize/class-wp-customize-selective-refresh.php
428 428 * @type array $errors List of errors triggered during rendering of partials, if `WP_DEBUG_DISPLAY` 429 429 * is enabled. 430 430 * } 431 * @param WP_Customize_Selective_Refresh $ thisSelective refresh component.431 * @param WP_Customize_Selective_Refresh $refresh Selective refresh component. 432 432 * @param array $partials Placements' context data for the partials rendered in the request. 433 433 * The array is keyed by partial ID, with each item being an array of 434 434 * the placements' context data. -
src/wp-includes/rest-api/class-wp-rest-server.php
457 457 * @since 4.5.0 Applied to embedded responses. 458 458 * 459 459 * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. 460 * @param WP_REST_Server $ thisServer instance.460 * @param WP_REST_Server $server Server instance. 461 461 * @param WP_REST_Request $request Request used to generate the response. 462 462 */ 463 463 $result = apply_filters( 'rest_post_dispatch', rest_ensure_response( $result ), $this, $request ); … … 486 486 * Default false. 487 487 * @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`. 488 488 * @param WP_REST_Request $request Request used to generate the response. 489 * @param WP_REST_Server $ thisServer instance.489 * @param WP_REST_Server $server Server instance. 490 490 */ 491 491 $served = apply_filters( 'rest_pre_serve_request', false, $result, $request, $this ); 492 492 … … 508 508 * @since 4.8.1 509 509 * 510 510 * @param array $result Response data to send to the client. 511 * @param WP_REST_Server $ thisServer instance.511 * @param WP_REST_Server $server Server instance. 512 512 * @param WP_REST_Request $request Request used to generate the response. 513 513 */ 514 514 $result = apply_filters( 'rest_pre_echo_response', $result, $this, $request ); … … 966 966 * 967 967 * @param mixed $result Response to replace the requested version with. Can be anything 968 968 * a normal endpoint can return, or null to not hijack the request. 969 * @param WP_REST_Server $ thisServer instance.969 * @param WP_REST_Server $server Server instance. 970 970 * @param WP_REST_Request $request Request used to generate the response. 971 971 */ 972 972 $result = apply_filters( 'rest_pre_dispatch', null, $this, $request ); -
src/wp-includes/widgets/class-wp-widget-custom-html.php
156 156 * 157 157 * @param string $content The widget content. 158 158 * @param array $instance Array of settings for the current widget. 159 * @param WP_Widget_Custom_HTML $ thisCurrent Custom HTML widget instance.159 * @param WP_Widget_Custom_HTML $widget Current Custom HTML widget instance. 160 160 */ 161 161 $content = apply_filters( 'widget_custom_html_content', $content, $instance, $this ); 162 162 -
src/wp-includes/widgets/class-wp-widget-media.php
162 162 * @since 4.9.0 163 163 * 164 164 * @param array $schema Instance schema. 165 * @param WP_Widget_Media $ thisWidget object.165 * @param WP_Widget_Media $widget Widget object. 166 166 */ 167 167 $schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this ); 168 168 … … 245 245 * 246 246 * @param array $instance Instance data. 247 247 * @param array $args Widget args. 248 * @param WP_Widget_Media $ thisWidget object.248 * @param WP_Widget_Media $widget Widget object. 249 249 */ 250 250 $instance = apply_filters( "widget_{$this->id_base}_instance", $instance, $args, $this ); 251 251 -
src/wp-includes/widgets/class-wp-widget-text.php
270 270 * Filters the content of the Text widget. 271 271 * 272 272 * @since 2.3.0 273 * @since 4.4.0 Added the `$ this` parameter.274 * @since 4.8.1 The `$ this` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.273 * @since 4.4.0 Added the `$widget` parameter. 274 * @since 4.8.1 The `$widget` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object. 275 275 * 276 276 * @param string $text The widget content. 277 277 * @param array $instance Array of settings for the current widget. 278 * @param WP_Widget_Text|WP_Widget_Custom_HTML $ this Current Textwidget instance.278 * @param WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance. 279 279 */ 280 280 $text = apply_filters( 'widget_text', $text, $instance, $this ); 281 281 … … 290 290 * 291 291 * @param string $text The widget content. 292 292 * @param array $instance Array of settings for the current widget. 293 * @param WP_Widget_Text $ thisCurrent Text widget instance.293 * @param WP_Widget_Text $widget Current Text widget instance. 294 294 */ 295 295 $text = apply_filters( 'widget_text_content', $text, $instance, $this ); 296 296 } else {