Make WordPress Core

Ticket #11146: general-template.php.diff

File general-template.php.diff, 927 bytes (added by sirzooro, 16 years ago)
  • general-template.php

    old new  
    10771077                FROM $wpdb->posts WHERE MONTH(post_date) = '$thismonth'
    10781078                AND YEAR(post_date) = '$thisyear'
    10791079                AND post_type = 'post' AND post_status = 'publish'
    1080                 AND post_date < '" . current_time('mysql') . '\'', ARRAY_N);
     1080                AND post_date < '" . current_time('mysql') . '\'', ARRAY_N, false);
    10811081        if ( $dayswithposts ) {
    10821082                foreach ( (array) $dayswithposts as $daywith ) {
    10831083                        $daywithpost[] = $daywith[0];
     
    10971097                ."WHERE YEAR(post_date) = '$thisyear' "
    10981098                ."AND MONTH(post_date) = '$thismonth' "
    10991099                ."AND post_date < '".current_time('mysql')."' "
    1100                 ."AND post_type = 'post' AND post_status = 'publish'"
     1100                ."AND post_type = 'post' AND post_status = 'publish'",
     1101                OBJECT, false
    11011102        );
    11021103        if ( $ak_post_titles ) {
    11031104                foreach ( (array) $ak_post_titles as $ak_post_title ) {