[wp-trac] [WordPress Trac] #24384: get_pages('parent=1') returns nothing
WordPress Trac
noreply at wordpress.org
Wed May 22 14:10:03 UTC 2013
#24384: get_pages('parent=1') returns nothing
--------------------------+-----------------------------
Reporter: tomdxw | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.5.1
Severity: normal | Keywords:
--------------------------+-----------------------------
get_pages('parent=1') returns an empty array
get_pages('parent=1&hierarchical=0') returns an array of pages
get_pages('parent=0') returns an array of pages
(assuming there is a page with ID=1 and it has children)
It seems like if parent=0 works then parent=1 should also work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24384>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list