Changeset 52973
- Timestamp:
- 03/21/2022 12:03:29 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r52707 r52973 961 961 $this->sql_clauses['limits'] = $limits; 962 962 963 $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}"; 963 $this->request = implode( 964 ' ', 965 array( 966 $this->sql_clauses['select'], 967 $this->sql_clauses['from'], 968 $where, 969 $this->sql_clauses['groupby'], 970 $this->sql_clauses['orderby'], 971 $this->sql_clauses['limits'], 972 ) 973 ); 964 974 965 975 if ( $this->query_vars['count'] ) { -
trunk/src/wp-includes/class-wp-network-query.php
r51518 r52973 481 481 $this->sql_clauses['limits'] = $limits; 482 482 483 $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}"; 483 $this->request = implode( 484 ' ', 485 array( 486 $this->sql_clauses['select'], 487 $this->sql_clauses['from'], 488 $where, 489 $this->sql_clauses['groupby'], 490 $this->sql_clauses['orderby'], 491 $this->sql_clauses['limits'], 492 ) 493 ); 484 494 485 495 if ( $this->query_vars['count'] ) { -
trunk/src/wp-includes/class-wp-query.php
r52822 r52973 3001 3001 } 3002 3002 3003 $old_request = "SELECT $found_rows $distinct $fields FROM {$wpdb->posts} $join WHERE 1=1 $where $groupby $orderby $limits"; 3003 $old_request = implode( 3004 ' ', 3005 array( 3006 "SELECT $found_rows $distinct $fields", 3007 "FROM {$wpdb->posts} $join", 3008 "WHERE 1=1 $where", 3009 $groupby, 3010 $orderby, 3011 $limits, 3012 ) 3013 ); 3014 3004 3015 $this->request = $old_request; 3005 3016 … … 3087 3098 // First get the IDs and then fill in the objects. 3088 3099 3089 $this->request = "SELECT $found_rows $distinct {$wpdb->posts}.ID FROM {$wpdb->posts} $join WHERE 1=1 $where $groupby $orderby $limits"; 3100 $this->request = implode( 3101 ' ', 3102 array( 3103 "SELECT $found_rows $distinct {$wpdb->posts}.ID", 3104 "FROM {$wpdb->posts} $join", 3105 "WHERE 1=1 $where", 3106 $groupby, 3107 $orderby, 3108 $limits, 3109 ) 3110 ); 3090 3111 3091 3112 /** -
trunk/src/wp-includes/class-wp-site-query.php
r52226 r52973 684 684 $this->sql_clauses['limits'] = $limits; 685 685 686 $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['groupby']} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}"; 686 $this->request = implode( 687 ' ', 688 array( 689 $this->sql_clauses['select'], 690 $this->sql_clauses['from'], 691 $where, 692 $this->sql_clauses['groupby'], 693 $this->sql_clauses['orderby'], 694 $this->sql_clauses['limits'], 695 ) 696 ); 687 697 688 698 if ( $this->query_vars['count'] ) { -
trunk/src/wp-includes/class-wp-term-query.php
r52972 r52973 723 723 $this->sql_clauses['limits'] = $limits; 724 724 725 $this->request = "{$this->sql_clauses['select']} {$this->sql_clauses['from']} {$where} {$this->sql_clauses['orderby']} {$this->sql_clauses['limits']}"; 725 $this->request = implode( 726 ' ', 727 array( 728 $this->sql_clauses['select'], 729 $this->sql_clauses['from'], 730 $where, 731 $this->sql_clauses['orderby'], 732 $this->sql_clauses['limits'], 733 ) 734 ); 726 735 727 736 $this->terms = null; -
trunk/src/wp-includes/class-wp-user-query.php
r52653 r52973 771 771 772 772 if ( null === $this->results ) { 773 $this->request = "SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit"; 773 $this->request = implode( 774 ' ', 775 array( 776 "SELECT {$this->query_fields}", 777 $this->query_from, 778 $this->query_where, 779 $this->query_orderby, 780 $this->query_limit, 781 ) 782 ); 774 783 775 784 if ( is_array( $qv['fields'] ) || 'all' === $qv['fields'] ) {
Note: See TracChangeset
for help on using the changeset viewer.