mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Temporary fix for next_post with GMT.
git-svn-id: https://develop.svn.wordpress.org/trunk@930 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d2897fb36
commit
54139eb9dc
@ -321,11 +321,11 @@ function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat=
|
||||
}
|
||||
}
|
||||
|
||||
$now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600)));
|
||||
$now = current_time('mysql');
|
||||
|
||||
$limitnext--;
|
||||
|
||||
$nextpost = @$wpdb->get_row("SELECT ID,post_title FROM $tableposts WHERE post_date > '$current_post_date' AND post_date < '$now' AND post_status = 'publish' $sqlcat $sql_exclude_cats ORDER BY post_date ASC LIMIT $limitnext,1");
|
||||
$nextpost = @$wpdb->get_row("SELECT ID,post_title FROM $tableposts WHERE post_date > '$current_post_date' AND post_date < '$now' AND post_status = 'publish' $sqlcat $sql_exclude_cats AND ID != $post->ID ORDER BY post_date ASC LIMIT $limitnext,1");
|
||||
if ($nextpost) {
|
||||
$string = '<a href="'.get_permalink($nextpost->ID).'">'.$next;
|
||||
if ($title=='yes') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user