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

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 26 16:58:55 UTC 2011


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

Comment (by nacin):

 Replying to [comment:73 ocean90]:
 > There is a problem with the {{{contextual_help}}} filter. It doesn't
 work for plugin pages/settings pages. This snippet doesn't return
 {{{$screen}}}, but it does in 3.2.

 Works for me.

 Note that the contextual_help filter will not always fire. It will fire if
 there is already old compatible help added to the page to form a "Screen
 Info" tab -- that help will then get filtered. It will also fire if there
 are no new-style tabs added, as it then serves as the basis for default
 help text.

 But if add_contextual_help() has not been called and add_help_tabs() has
 been, that filter can only fire if someone uses the contextual_help_list
 filter to add something specific to the current screen. You'll see that
 your code does not fire on post-new.php/post.php and index.php, as those
 have help tabs.

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


More information about the wp-trac mailing list