Changeset 53175
- Timestamp:
- 04/14/2022 12:02:31 AM (2 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r53169 r53175 918 918 $where = implode( ' AND ', $this->sql_clauses['where'] ); 919 919 920 $clauses = compact( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );920 $clauses = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' ); 921 921 922 922 /** … … 928 928 * @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference). 929 929 */ 930 $clauses = apply_filters_ref_array( 'comments_clauses', array( $clauses, &$this ) );930 $clauses = apply_filters_ref_array( 'comments_clauses', array( compact( $clauses ), &$this ) ); 931 931 932 932 $fields = isset( $clauses['fields'] ) ? $clauses['fields'] : ''; -
trunk/src/wp-includes/class-wp-network-query.php
r53098 r53175 439 439 $groupby = ''; 440 440 441 $clauses = compact( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );441 $clauses = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' ); 442 442 443 443 /** … … 449 449 * @param WP_Network_Query $query Current instance of WP_Network_Query (passed by reference). 450 450 */ 451 $clauses = apply_filters_ref_array( 'networks_clauses', array( $clauses, &$this ) );451 $clauses = apply_filters_ref_array( 'networks_clauses', array( compact( $clauses ), &$this ) ); 452 452 453 453 $fields = isset( $clauses['fields'] ) ? $clauses['fields'] : ''; -
trunk/src/wp-includes/class-wp-query.php
r53065 r53175 2754 2754 } 2755 2755 2756 $clauses = compact( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' );2756 $clauses = array( 'where', 'groupby', 'join', 'orderby', 'distinct', 'fields', 'limits' ); 2757 2757 2758 2758 /* … … 2856 2856 * @param WP_Query $query The WP_Query instance (passed by reference). 2857 2857 */ 2858 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( $clauses, &$this ) );2858 $clauses = (array) apply_filters_ref_array( 'posts_clauses', array( compact( $clauses ), &$this ) ); 2859 2859 2860 2860 $where = isset( $clauses['where'] ) ? $clauses['where'] : ''; -
trunk/src/wp-includes/class-wp-site-query.php
r53107 r53175 647 647 $where = implode( ' AND ', $this->sql_clauses['where'] ); 648 648 649 $clauses = compact( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );649 $clauses = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' ); 650 650 651 651 /** … … 657 657 * @param WP_Site_Query $query Current instance of WP_Site_Query (passed by reference). 658 658 */ 659 $clauses = apply_filters_ref_array( 'sites_clauses', array( $clauses, &$this ) );659 $clauses = apply_filters_ref_array( 'sites_clauses', array( compact( $clauses ), &$this ) ); 660 660 661 661 $fields = isset( $clauses['fields'] ) ? $clauses['fields'] : ''; -
trunk/src/wp-includes/class-wp-term-query.php
r52977 r53175 693 693 $where = implode( ' AND ', $this->sql_clauses['where'] ); 694 694 695 $clauses = compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' );695 $clauses = array( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ); 696 696 697 697 /** … … 704 704 * @param array $args An array of term query arguments. 705 705 */ 706 $clauses = apply_filters( 'terms_clauses', $clauses, $taxonomies, $args );706 $clauses = apply_filters( 'terms_clauses', compact( $clauses ), $taxonomies, $args ); 707 707 708 708 $fields = isset( $clauses['fields'] ) ? $clauses['fields'] : '';
Note: See TracChangeset
for help on using the changeset viewer.