Changeset 52977 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 03/22/2022 02:54:45 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r52974 r52977 3001 3001 } 3002 3002 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 ); 3003 $old_request = " 3004 SELECT $found_rows $distinct $fields 3005 FROM {$wpdb->posts} $join 3006 WHERE 1=1 $where 3007 $groupby 3008 $orderby 3009 $limits 3010 "; 3014 3011 3015 3012 $this->request = $old_request; … … 3098 3095 // First get the IDs and then fill in the objects. 3099 3096 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 ); 3097 $this->request = " 3098 SELECT $found_rows $distinct {$wpdb->posts}.ID 3099 FROM {$wpdb->posts} $join 3100 WHERE 1=1 $where 3101 $groupby 3102 $orderby 3103 $limits 3104 "; 3111 3105 3112 3106 /**
Note: See TracChangeset
for help on using the changeset viewer.