[wp-trac] [WordPress Trac] #18408: Can't wp_reset_postdata after custom WP_Query in an admin edit page

WordPress Trac noreply at wordpress.org
Sun Mar 5 23:40:23 UTC 2023


#18408: Can't wp_reset_postdata after custom WP_Query in an admin edit page
---------------------------------------------+-----------------------------
 Reporter:  ericlewis                        |       Owner:  ericlewis
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  Future Release
Component:  Query                            |     Version:  4.7.2
 Severity:  normal                           |  Resolution:
 Keywords:  needs-testing ongoing has-patch  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by Howdy_McGee):

 * keywords:  needs-testing ongoing needs-patch => needs-testing ongoing
     has-patch


Comment:

 This patch allows developers to reset custom WP_Querys back to the
 original admin post using `wp_rest_postdata()`.

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


More information about the wp-trac mailing list