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

WordPress Trac noreply at wordpress.org
Fri Oct 18 18:07:59 UTC 2019


#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.4
Component:  Posts, Post Types                    |     Version:  3.1
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by birgire):

 The test in [attachment:"48358.1.diff"] might need the annotation
 {{{@ticket 48358}}}. I also wonder if the function's doc would need the
 {{{@since}}} annotation after the signature change.

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


More information about the wp-trac mailing list