display_element causing "Warning: Cannot use a scalar value as an array"
|Reported by:||HyperionJRW||Owned by:||anonymous|
When I view a page in 2.7-beta3-9817 the wp_list_pages throws up a warning in my test environment with both php 4 and 5.
Warning: Cannot use a scalar value as an array in T:\hosts\wordpress\wordpress.trunk\wp-includes\classes.php on line 827
$args is set to page_id when you view a page and $args is the place you're looking for at that point. Problem starts at line 623 post-template. $current_page is only set when on a page and PHP seems not to mind adding an named array to an array when the value is null or 0. Could set the value when not in a page to -1 so people see the problem sooner.