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

WordPress Trac noreply at wordpress.org
Mon Jan 18 14:45:39 UTC 2016


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

Comment (by ramiy):

 Same logic can be applied for the boolean function, rename back from
 `has_post_parent()` to `has_parent()`.

 The other `has_()` functions don't use the `post` in their name:

 * has_excerpt()
 * has_tag()
 * has_term()
 * has_nav_menu()

 Only one function use  `post` in the name:

 * has_post_thumbnail()

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


More information about the wp-trac mailing list