Changeset 57750 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 03/02/2024 01:36:02 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r57648 r57750 3105 3105 } 3106 3106 3107 $old_request = "3108 SELECT $found_rows $distinct $fields3109 FROM {$wpdb->posts} $join3110 WHERE 1=1 $where3111 $groupby3112 $orderby3113 $limits3114 ";3107 // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. 3108 $old_request = 3109 "SELECT $found_rows $distinct $fields 3110 FROM {$wpdb->posts} $join 3111 WHERE 1=1 $where 3112 $groupby 3113 $orderby 3114 $limits"; 3115 3115 3116 3116 $this->request = $old_request; … … 3308 3308 // First get the IDs and then fill in the objects. 3309 3309 3310 $this->request = "3311 SELECT $found_rows $distinct {$wpdb->posts}.ID3312 FROM {$wpdb->posts} $join3313 WHERE 1=1 $where3314 $groupby3315 $orderby3316 $limits3317 ";3310 // Beginning of the string is on a new line to prevent leading whitespace. See https://core.trac.wordpress.org/ticket/56841. 3311 $this->request = 3312 "SELECT $found_rows $distinct {$wpdb->posts}.ID 3313 FROM {$wpdb->posts} $join 3314 WHERE 1=1 $where 3315 $groupby 3316 $orderby 3317 $limits"; 3318 3318 3319 3319 /**
Note: See TracChangeset
for help on using the changeset viewer.