[wp-trac] [WordPress Trac] #48358: wp_get_post_parent_id() does not default to global $post

WordPress Trac noreply at wordpress.org
Wed Nov 17 03:10:53 UTC 2021


#48358: wp_get_post_parent_id() does not default to global $post
-------------------------------------------------+-------------------------
 Reporter:  danielpost                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.9
Component:  Posts, Post Types                    |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note commit                                    |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 In [attachment:"48358.3.diff"]:

 * Functional code in PR as approved earlier
 * `@covers` and `@since` documentation added
 * `@param ... $post` description modified for consistency with the same
 use case elsewhere in core

 I pushed the latter two items to @audrasjb's branch, presuming the tests
 pass I will commit momentarily.

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


More information about the wp-trac mailing list