Changeset 13697
- Timestamp:
- 03/14/2010 05:06:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r13623 r13697 363 363 $where = $wpdb->prepare("post_name LIKE %s", get_query_var('name') . '%'); 364 364 365 // if any of year, monthnum, or day are set, use them to refine the query 365 // if any of post_type, year, monthnum, or day are set, use them to refine the query 366 if ( get_query_var('post_type') ) 367 $where .= $wpdb->prepare(" AND post_type = %s", get_query_var('post_type')); 366 368 if ( get_query_var('year') ) 367 369 $where .= $wpdb->prepare(" AND YEAR(post_date) = %d", get_query_var('year'));
Note: See TracChangeset
for help on using the changeset viewer.