[wp-trac] [WordPress Trac] #12596: "screen options" tab disappearing for plugins
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 14 18:15:12 UTC 2010
#12596: "screen options" tab disappearing for plugins
--------------------------+-------------------------------------------------
Reporter: arena | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Plugins | Version: 3.0
Severity: normal | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Comment(by arena):
@dd32 sequence code has changed from 2.9 to 3.0
if ( is_string($screen) ) always return false for admin plugin pages ...
so no chance to go to convert_to_screen($screen); where filter
’screen_meta_screen’ applies to set the value of variable $screen.
@TobiasBg
set_current_screen ends 'current_screen' filter is a wrong options as
'current_screen' requires an object to be returned ...
@all,
Good patch is in in wp-admin/includes/template.php,
for function screen_meta
$screen = apply_filters('screen_meta_screen', $screen);
if ( is_string($screen) )
$screen = convert_to_screen($screen);
for function convert_to_screen
//$screen = apply_filters('screen_meta_screen', $screen);
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12596#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list