WordPress.org

Make WordPress Core

Changeset 11464


Ignore:
Timestamp:
05/26/2009 11:57:01 PM (9 years ago)
Author:
ryan
Message:

Fix loop start, loop end workflow. Props Denis-de-Bernardy. fixes #9944

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r11452 r11464  
    23862386        global $post;
    23872387        $this->in_the_loop = true;
     2388
     2389        if ( $this->current_post == -1 ) // loop has just started
     2390            do_action_ref_array('loop_start', array(&$this));
     2391
    23882392        $post = $this->next_post();
    23892393        setup_postdata($post);
    2390 
    2391         if ( $this->current_post == 0 ) // loop has just started
    2392             do_action_ref_array('loop_start', array(&$this));
    23932394    }
    23942395
     
    26622663    global $id, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages;
    26632664
    2664     do_action_ref_array('the_post', array(&$post));
    2665 
    26662665    $id = (int) $post->ID;
    26672666
     
    26902689        $multipage = 0;
    26912690    }
     2691
     2692    do_action_ref_array('the_post', array(&$post));
     2693   
    26922694    return true;
    26932695}
Note: See TracChangeset for help on using the changeset viewer.