[wp-trac] [WordPress Trac] #15338: Use global $current_screen within the List Tables classes
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 8 10:29:12 UTC 2010
#15338: Use global $current_screen within the List Tables classes
----------------------------+-----------------------------------------------
Reporter: westi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Administration | Version: 3.1
Severity: normal | Keywords: needs-patch
----------------------------+-----------------------------------------------
At the moment WP_List_Table caches a local copy of the screen object
rather than using the pre-existing global.
This gives the potential for them to get out of sync.
We should just use the one location for this data.
Either always referencing the global or probably better using
get_current_screen() in each function that needs the screen object.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15338>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list