WordPress.org

Make WordPress Core

Ticket #15949: 15949.diff

File 15949.diff, 592 bytes (added by dd32, 7 years ago)
  • wp-includes/query.php

     
    20042004                if ( $q['w'] )
    20052005                        $where .= ' AND ' . _wp_mysql_week( "`$wpdb->posts`.`post_date`" ) . " = '" . $q['w'] . "'";
    20062006
    2007                 if ( intval($q['comments_popup']) )
     2007                if ( intval($q['comments_popup']) ) {
    20082008                        $q['p'] = absint($q['comments_popup']);
     2009                        $post_type = 'any';
     2010                }
    20092011
    20102012                // If an attachment is requested by number, let it supercede any post number.
    20112013                if ( $q['attachment_id'] )