[wp-trac] [WordPress Trac] #33045: New conditional tags for child/parent pages
WordPress Trac
noreply at wordpress.org
Wed Feb 17 20:24:50 UTC 2021
#33045: New conditional tags for child/parent pages
-------------------------------+--------------------------
Reporter: ramiy | Owner: johnbillion
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.7
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: template
-------------------------------+--------------------------
Comment (by SergeyBiryukov):
Replying to [comment:46 johnjamesjacoby]:
> I’ve read all of the comments in this ticket, and see it’s gone back and
forth until you put your foot down 3 years ago, but then your commit
message hilariously inverted them, and my intuition tells me that post-
parent is more natural than parent-post.
I also went back and forth on this when reviewing the commit :) I guess
`get_post_parent()`, for consistency with the `post_parent` field, would
indeed be preferable here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33045#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list