Ticket #12601: 12601.diff
File 12601.diff, 622 bytes (added by , 15 years ago) |
---|
-
canonical.php
369 369 $where .= $wpdb->prepare(" AND MONTH(post_date) = %d", get_query_var('monthnum')); 370 370 if ( get_query_var('day') ) 371 371 $where .= $wpdb->prepare(" AND DAYOFMONTH(post_date) = %d", get_query_var('day')); 372 if ( get_query_var('post_type') ) 373 $where .= $wpdb->prepare(" AND post_type = %s", get_query_var('post_type')); 372 374 373 375 $post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE $where AND post_status = 'publish'"); 374 376 if ( !$post_id )