[wp-trac] [WordPress Trac] #15667: wp_list_pages, if it finds no pages to display, shows random child pages instead because of a bug in get_pages()
WordPress Trac
noreply at wordpress.org
Sun Mar 2 17:18:56 UTC 2014
#15667: wp_list_pages, if it finds no pages to display, shows random child pages
instead because of a bug in get_pages()
-------------------------------------------------+-------------------------
Reporter: bobsoap | Owner:
Type: defect (bug) | jackreichert
Priority: normal | Status: assigned
Component: Query | Milestone: 3.9
Severity: minor | Version: 3.0.2
Keywords: good-first-bug needs-unit-tests | Resolution:
has-patch 2nd-opinion | Focuses:
-------------------------------------------------+-------------------------
Comment (by jackreichert):
>class-wp-walker.php.diff breaks both depth=-1 and depth=0. class-wp-
walker.php.1.diff changes the > to a !== so we only trigger the behaviour
when depth=1.
Good catch!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15667#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list