Make WordPress Core

Changeset 15664


Ignore:
Timestamp:
09/26/2010 09:34:09 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15662 r15664  
    19011901
    19021902function screen_icon($screen = '') {
    1903     global $current_screen;
     1903    global $current_screen, $typenow;
    19041904
    19051905    if ( empty($screen) )
     
    19071907    elseif ( is_string($screen) )
    19081908        $name = $screen;
     1909
     1910    $class = 'icon32';
    19091911
    19101912    if ( empty($name) ) {
     
    19171919            $name = 'edit-pages';
    19181920
    1919         $class = 'icon32';
     1921        $post_type = '';
    19201922        if ( isset( $screen->post_type ) )
    1921             $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type );
     1923            $post_type = $screen->post_type;
     1924        elseif ( $current_screen == $screen )
     1925            $post_type = $typenow;
     1926        if ( $post_type )
     1927            $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type );
    19221928    }
    19231929
Note: See TracChangeset for help on using the changeset viewer.