[wp-trac] [WordPress Trac] #18785: Modernize screen functions

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 1 03:39:52 UTC 2011


#18785: Modernize screen functions
----------------------------+---------------------
 Reporter:  nacin           |       Owner:  nacin
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  3.3
Component:  Administration  |     Version:  3.3
 Severity:  normal          |  Resolution:  fixed
 Keywords:  dev-feedback    |
----------------------------+---------------------

Comment (by nacin):

 Replying to [comment:150 nacin]:
 > In [19521]:
 > {{{
 > #!CommitTicketReference repository="" revision="19521"
 > Make current_screen an action, not a filter. see #18785.
 > }}}

 Since $current_screen is an object, making it an action doesn't prevent
 modifications to it. But it does make plugin authors think twice about
 using this to modify the object directly.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18785#comment:152>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list