Apply [15661] to the edit-tags.php screens. fixes #14959. see #14886 for current_screen.

git-svn-id: https://develop.svn.wordpress.org/trunk@15664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-09-26 09:34:09 +00:00
parent 1c24b9d9e8
commit 842f61b71e
1 changed files with 9 additions and 3 deletions

View File

@ -1900,13 +1900,15 @@ function screen_options($screen) {
}
function screen_icon($screen = '') {
global $current_screen;
global $current_screen, $typenow;
if ( empty($screen) )
$screen = $current_screen;
elseif ( is_string($screen) )
$name = $screen;
$class = 'icon32';
if ( empty($name) ) {
if ( !empty($screen->parent_base) )
$name = $screen->parent_base;
@ -1916,9 +1918,13 @@ function screen_icon($screen = '') {
if ( 'edit' == $name && isset($screen->post_type) && 'page' == $screen->post_type )
$name = 'edit-pages';
$class = 'icon32';
$post_type = '';
if ( isset( $screen->post_type ) )
$class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type );
$post_type = $screen->post_type;
elseif ( $current_screen == $screen )
$post_type = $typenow;
if ( $post_type )
$class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type );
}
?>