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

WordPress Trac noreply at wordpress.org
Sun Sep 19 20:58:41 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 needs-refresh                             |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * Attachment "48358.2.diff" added.

 Posts, Post Types: Default wp_get_post_parent_id() to global $post

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


More information about the wp-trac mailing list