Changeset 56192 for trunk/src/wp-includes/query.php
- Timestamp:
- 07/10/2023 10:46:22 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r55526 r56192 1140 1140 $query = $wpdb->prepare( "SELECT post_id FROM $wpdb->postmeta, $wpdb->posts WHERE ID = post_id AND post_type = %s AND meta_key = '_wp_old_slug' AND meta_value = %s", $post_type, get_query_var( 'name' ) ); 1141 1141 1142 // If year, monthnum, or day have been specified, make our query more precise 1143 // just in case there are multiple identical _wp_old_slug values. 1142 /* 1143 * If year, monthnum, or day have been specified, make our query more precise 1144 * just in case there are multiple identical _wp_old_slug values. 1145 */ 1144 1146 if ( get_query_var( 'year' ) ) { 1145 1147 $query .= $wpdb->prepare( ' AND YEAR(post_date) = %d', get_query_var( 'year' ) );
Note: See TracChangeset
for help on using the changeset viewer.