[wp-trac] [WordPress Trac] #39564: Notice: Undefined index: item_spacing in /var/www/html/wordpress/wp-includes/class-walker-page.php on line 106
WordPress Trac
noreply at wordpress.org
Sat Jan 14 11:18:09 UTC 2017
#39564: Notice: Undefined index: item_spacing in /var/www/html/wordpress/wp-
includes/class-walker-page.php on line 106
-------------------------------------+----------------------------
Reporter: jrswgtr | Owner: peterwilsoncc
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.7.2
Component: Menus | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+----------------------------
Changes (by bhargavbhandari90):
* keywords: => has-patch needs-testing
Comment:
@ketuchetan Try by adding this code into your functions.php. Make sure you
have made Debugging on from your wp-config.php. You can also check by any
debugging plugin.
{{{
function test_page_walker() {
$walker_page = new Walker_Page();
echo '<ul>'.$walker_page->walk(get_pages(), 0).'</ul>'; // 0 means
display all levels.
}
add_action( 'init', 'test_page_walker' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39564#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list