WordPress.org

Make WordPress Core

Changeset 12279


Ignore:
Timestamp:
11/26/09 05:22:09 (4 years ago)
Author:
azaozz
Message:

Get the right number of pages then excluding a tree, fixes #11205

File:
1 edited

Legend:

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

    r12273 r12279  
    26002600            $excludes[] = $child->ID; 
    26012601        $excludes[] = $exclude; 
     2602        $num_pages = count($pages); 
    26022603        for ( $i = 0; $i < $num_pages; $i++ ) { 
    26032604            if ( in_array($pages[$i]->ID, $excludes) ) 
Note: See TracChangeset for help on using the changeset viewer.