Ticket #11146: general-template.php.diff
File general-template.php.diff, 927 bytes (added by , 16 years ago) |
---|
-
general-template.php
old new 1077 1077 FROM $wpdb->posts WHERE MONTH(post_date) = '$thismonth' 1078 1078 AND YEAR(post_date) = '$thisyear' 1079 1079 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); 1081 1081 if ( $dayswithposts ) { 1082 1082 foreach ( (array) $dayswithposts as $daywith ) { 1083 1083 $daywithpost[] = $daywith[0]; … … 1097 1097 ."WHERE YEAR(post_date) = '$thisyear' " 1098 1098 ."AND MONTH(post_date) = '$thismonth' " 1099 1099 ."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 1101 1102 ); 1102 1103 if ( $ak_post_titles ) { 1103 1104 foreach ( (array) $ak_post_titles as $ak_post_title ) {