From c313442072e2654b931cc8ce9eb7c17b9520eed9 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 28 Feb 2008 06:43:45 +0000 Subject: [PATCH] Cast to array git-svn-id: http://svn.automattic.com/wordpress/trunk@7081 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 9efe55ee8c..f2f3561a6d 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -551,7 +551,7 @@ class Walker_Page extends Walker { extract($args, EXTR_SKIP); $css_class = 'page_item page-item-'.$page->ID; $_current_page = get_page( $current_page ); - if ( in_array($page->ID, $_current_page->ancestors) ) + if ( in_array($page->ID, (array) $_current_page->ancestors) ) $css_class .= ' current_page_ancestor'; if ( $page->ID == $current_page ) $css_class .= ' current_page_item';