[wp-trac] [WordPress Trac] #23215: Don't use deprecated WP_Screen::is_network property.

WordPress Trac noreply at wordpress.org
Wed Jan 16 18:22:17 UTC 2013


#23215: Don't use deprecated WP_Screen::is_network property.
-----------------------------+---------------------------
 Reporter:  bpetty           |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Network Admin
  Version:  3.5              |   Severity:  normal
 Keywords:                   |
-----------------------------+---------------------------
 Just updates `WP_Plugins_List_Table` to use `$screen->in_admin( 'network'
 )` instead of the deprecated `is_network` property.

 `is_network` was deprecated in r21687 (#21742), and while this might
 normally use `in_network_admin()`, it's possible to pass in a custom
 `WP_Screen` into `WP_List_Table` (which might happen in unit tests or
 maybe some ajax calls), so in this case, the replacement continues to use
 the same screen object instead.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23215>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list