[wp-trac] [WordPress Trac] #8453: fixing notice in
wp-includes/classes.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 2 06:45:27 GMT 2008
#8453: fixing notice in wp-includes/classes.php
---------------------+------------------------------------------------------
Reporter: Malaiac | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: minor | Keywords: has-patch
---------------------+------------------------------------------------------
{{{
if ( in_array($page->ID, (array) $_current_page->ancestors) )
}}}
$_current_page->ancestors is not always set, leading to PHP notices
fix :
{{{
if ( isset($_current_page->ancestors) && in_array($page->ID, (array)
$_current_page->ancestors) )
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8453>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list