[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
Sat Jan 3 19:48:47 UTC 2015
#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: Awaiting
Component: Query | Review
Severity: normal | Version: 3.8.1
Keywords: has-patch needs-testing dev- | Resolution:
feedback | Focuses:
-------------------------------------------------+-------------------------
Comment (by ericlewis):
In 2011, the right sidebar was output in markup before the main
title/content. This has been switched sometime in the last three years
(maybe during mp6?), so the bug doesn't express itself so clearly now.
See attachment:18408.php, which clearly shows `the_title()` after the
`wp_reset_postdata()` is using data from the custom WP_Query, not the
original post to be edited.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18408#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list