Opened 12 years ago
Closed 12 years ago
#23215 closed enhancement (fixed)
Don't use deprecated WP_Screen::is_network property.
Reported by: | bpetty | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Network Admin | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 23658: