[wp-trac] [WordPress Trac] #39257: admin_notices bug when using wp_query
WordPress Trac
noreply at wordpress.org
Mon Dec 12 23:46:45 UTC 2016
#39257: admin_notices bug when using wp_query
----------------------------+-----------------------------
Reporter: garethgillman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.7
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
I have the following code: http://pastebin.com/3cshwQ8U
This causes:
http://www.awesomescreenshot.com/image/1948334/30b6abe1dc1661bc045e218ff23403a0
It auto fills out the title, slug and content from the last post in the
query, tested on 2 different cleans sites on 4.5 and 4.6
It leads me to believe that the global $query object is being interfered
with by instantiating a new WP_Query class inside the admin_notices hook
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39257>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list