Notices due to get_page_by_path( )
|Reported by:||gautamgupta||Owned by:|
I have bbPress installed, and while browsing the forum pages which have at least one parent, 3 notices are received:
Notice: Undefined index: 0 in /.../wp-includes/post.php on line 3175 Notice: Trying to get property of non-object in /.../wp-includes/post.php on line 3171 Notice: Trying to get property of non-object in /.../wp-includes/post.php on line 3178
Where forums is the base slug used by bbPress, forum is a CPT, normal is a forum, normal-closed-child is a child forum of normal.
$parts at line 3155: Array (  => normal  => normal-closed-child )
$pages at line 3160: Array (  => stdClass Object ( [ID] => 2 [post_name] => normal [post_parent] => 0 )  => stdClass Object ( [ID] => 4 [post_name] => normal-closed-child [post_parent] => 2 ) )