[wp-trac] [WordPress Trac] #42797: Add missing parameter description in wp_get_post_parent_id function DocBlock

WordPress Trac noreply at wordpress.org
Fri Dec 15 01:01:03 UTC 2017


#42797: Add missing parameter description in wp_get_post_parent_id function
DocBlock
--------------------------------------+-----------------------------
 Reporter:  keesiemeijer              |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.0
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  docs
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42397"]:
 {{{
 #!CommitTicketReference repository="" revision="42397"
 Docs: Add missing parameter description in `wp_get_post_parent_id()`
 function DocBlock.

 Rename `$post_ID` to `$post` for consistency with other functions.

 Add unit tests for `wp_get_post_parent_id()`.

 Props keesiemeijer.
 Fixes #42797.
 }}}

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


More information about the wp-trac mailing list