Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 9 years ago

#8216 closed defect (bug) (fixed)

screen_meta and plugins : ??!!

Reported by: arena's profile arena Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description

screen_meta and plugins :

from last trunk, now screen_meta is called in

/wp-admin/admin-header.php

94 screen_meta($pagenow, $hook_suffix);

where

$pagenow is (for a new admin menu) admin.php

and $hook_suffix = myplugin/toto.php

in
/wp-admin/includes/template.php

3180 function screen_meta($screen, $suffix = ) {
3181 global $wp_meta_boxes;
3182
3183 $screen = str_replace('.php',
, $screen);

so now all my metaboxes must refer to 'admin' or to the file of the main menu ... not cool !

3222 $helppost? = ('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>');
3223 $helpgeneral-settings? =
('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');

i would appreciate to have something like
$help = apply_filters('contextual_help_link', $help, $screen, $suffix);

what do you think !

Change History (2)

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9702]) contextual_help_link filter. Pass page hook instead of pagenow to screen_meta(). fixes #8216

This ticket was mentioned in Slack in #core-i18n by swissspidy. View the logs.


9 years ago

Note: See TracTickets for help on using tickets.