[wp-trac] [WordPress Trac] #50435: In some cases wp_get_post_parent_id() = get_post_ancestors
WordPress Trac
noreply at wordpress.org
Tue Feb 18 13:38:03 UTC 2025
#50435: In some cases wp_get_post_parent_id() = get_post_ancestors
-------------------------------+------------------------------
Reporter: chvon7thal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.4.2
Severity: normal | Resolution:
Keywords: | Focuses: performance
-------------------------------+------------------------------
Comment (by karthickmurugan):
Hi @chvon7thal,
Tested all scenarios for replicating this issue but was not able to get
the wp_get_post_parent_id() to return the same ID as the current post ID.
Can you please explain the correct scenario with some video so that it
will be helpful to debug it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50435#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list