mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Fix from Jay McCarthy and I cleaned up the function to remove some unused globals.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4a1cc7ea4
commit
d30904708e
@ -313,10 +313,8 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $
|
||||
}
|
||||
|
||||
function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
|
||||
global $tableposts, $p, $posts, $id, $post, $wpdb;
|
||||
global $single;
|
||||
global $querystring_start, $querystring_equal, $querystring_separator;
|
||||
if(($p) || ($posts==1) || 1 == $single) {
|
||||
global $tableposts, $posts_per_page, $post, $wpdb, $single;
|
||||
if(1 == $posts_per_page || 1 == $single) {
|
||||
|
||||
$current_post_date = $post->post_date;
|
||||
$current_category = $post->post_category;
|
||||
|
Loading…
Reference in New Issue
Block a user