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

WordPress Trac noreply at wordpress.org
Mon Dec 4 19:03:06 UTC 2017


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

 * keywords:   => has-patch has-unit-tests


Comment:

 In patch [attachment:42797.patch]  the `$post_ID` parameter is renamed to
 `$post` and the description is added. I've added unit tests to see if the
 original code and new code return the same parent post ids.

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


More information about the wp-trac mailing list