[wp-trac] [WordPress Trac] #33045: New conditional tags for child/parent pages

WordPress Trac noreply at wordpress.org
Mon Oct 2 23:45:57 UTC 2017


#33045: New conditional tags for child/parent pages
-------------------------------+--------------------------
 Reporter:  ramiy              |       Owner:  johnbillion
     Type:  enhancement        |      Status:  reviewing
 Priority:  normal             |   Milestone:  4.9
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  template
-------------------------------+--------------------------

Comment (by johnbillion):

 I've decided these functions should be named `get_parent_post()` and
 `has_parent_post()`. The "parent post" is the object being gotten.

 This also allows functions such as `get_parent_term()` to be introduced in
 the future in order to fetch a term's parent.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33045#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list