Changeset 20688
- Timestamp:
- 05/02/2012 05:39:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/canonical.php
r20669 r20688 493 493 if ( get_query_var('post_type') ) 494 494 $where .= $wpdb->prepare(" AND post_type = %s", get_query_var('post_type')); 495 else 496 $where .= " AND post_type IN ('" . implode( "', '", get_post_types( array( 'public' => true ) ) ) . "')"; 497 495 498 if ( get_query_var('year') ) 496 499 $where .= $wpdb->prepare(" AND YEAR(post_date) = %d", get_query_var('year'));
Note: See TracChangeset
for help on using the changeset viewer.