[wp-trac] [WordPress Trac] #24384: get_pages('parent=1') returns nothing
WordPress Trac
noreply at wordpress.org
Tue Oct 29 06:43:11 UTC 2024
#24384: get_pages('parent=1') returns nothing
--------------------------+----------------------
Reporter: tomdxw | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.5.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by camyilmaz):
It appears that the behavior of the get_pages() function when querying
pages with specific parent IDs is inconsistent. While parent=0 returns an
array of top-level pages and parent=1&hierarchical=0 returns child pages
of a specific parent, parent=1 unexpectedly returns an empty array despite
the existence of a parent page with children. This inconsistency may
suggest a potential issue with the function's implementation or
documentation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24384#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list