Changeset 7081

Show
Ignore:
Timestamp:
02/28/08 06:43:45 (6 months ago)
Author:
ryan
Message:

Cast to array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/classes.php

    r7074 r7081  
    552552        $css_class = 'page_item page-item-'.$page->ID; 
    553553        $_current_page = get_page( $current_page ); 
    554         if ( in_array($page->ID, $_current_page->ancestors) ) 
     554        if ( in_array($page->ID, (array) $_current_page->ancestors) ) 
    555555            $css_class .= ' current_page_ancestor'; 
    556556        if ( $page->ID == $current_page )