Ticket #15949: 15949.diff
| File 15949.diff, 592 bytes (added by , 15 years ago) |
|---|
-
wp-includes/query.php
2004 2004 if ( $q['w'] ) 2005 2005 $where .= ' AND ' . _wp_mysql_week( "`$wpdb->posts`.`post_date`" ) . " = '" . $q['w'] . "'"; 2006 2006 2007 if ( intval($q['comments_popup']) ) 2007 if ( intval($q['comments_popup']) ) { 2008 2008 $q['p'] = absint($q['comments_popup']); 2009 $post_type = 'any'; 2010 } 2009 2011 2010 2012 // If an attachment is requested by number, let it supercede any post number. 2011 2013 if ( $q['attachment_id'] )