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

WordPress Trac noreply at wordpress.org
Sun Jan 17 14:13: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
-----------------------------------+------------------------------
Changes (by ramiy):

 * keywords:  has-patch reporter-feedback 2nd-opinion => has-patch 2nd-
               opinion


Comment:

 Replying to [comment:5 johnbillion]:
 > @ramiy What's the use case for filtering the return value of
 `get_parent()`?
 >
 > Also these functions need `post` in their name to avoid ambiguity. eg.
 `wp_get_post_parent()`.

 You are right, there is no reason to filter the returned value.
 @sebastian.pisula revised my patch, he removed the filter and added the
 required `post` to the function name.

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


More information about the wp-trac mailing list