Make WordPress Core

Changeset 1254


Ignore:
Timestamp:
05/09/2004 11:26:41 PM (21 years ago)
Author:
saxmatt
Message:

Fix from Jay McCarthy and I cleaned up the function to remove some unused globals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r1250 r1254  
    314314
    315315function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
    316     global $tableposts, $p, $posts, $id, $post, $wpdb;
    317     global $single;
    318     global $querystring_start, $querystring_equal, $querystring_separator;
    319     if(($p) || ($posts==1) || 1 == $single) {
     316    global $tableposts, $posts_per_page, $post, $wpdb, $single;
     317    if(1 == $posts_per_page || 1 == $single) {
    320318
    321319        $current_post_date = $post->post_date;
Note: See TracChangeset for help on using the changeset viewer.