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

WordPress Trac noreply at wordpress.org
Sun Jan 17 22:49:53 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):

 Actually,

 I don't agree with the new function name `wp_get_post_parent()`,
 I prefer it would be `get_post_parent()`, without the `wp_` prefix.

 We should stick with naming conventions in `post-template.php`, non of the
 `get` functions use the `wp_` prefix:

 * get_the_ID()
 * get_the_title()
 * get_the_guid()
 * get_the_content()
 * get_the_excerpt()
 * get_post_class()
 * get_body_class()

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


More information about the wp-trac mailing list