Make WordPress Core

Changeset 7081


Ignore:
Timestamp:
02/28/2008 06:43:45 AM (17 years ago)
Author:
ryan
Message:

Cast to array

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 )
Note: See TracChangeset for help on using the changeset viewer.