[wp-trac] [WordPress Trac] #12596: 'screen options' tab desappearing for plugins
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 12 22:05:27 UTC 2010
#12596: 'screen options' tab desappearing for plugins
--------------------------+-------------------------------------------------
Reporter: arena | Owner: westi
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Plugins | Version: 3.0
Severity: critical | Keywords:
--------------------------+-------------------------------------------------
(works in 2.9 not in 3.0)
Unable to create a 'screen options' tab for plugin admin pages.
In 2.7, filter ’screen_meta_screen’ was created to give the ability to
name the $screen variable for plugins.
(http://core.trac.wordpress.org/changeset/9788)
In 3.0 the code sequence has changed in wp-admin/includes/template.php,
for function screen_meta
new code is :
if ( is_string($screen) ) $screen = convert_to_screen($screen);
Result is that with the "is_string" test, for plugins admin pages,
"convert_to_screen" function is never called and filter
’screen_meta_screen’ is never called ...
Consequence is : no screen options tab and corresponding div’s for plugin
admin pages.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12596>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list