Make WordPress Core


Ignore:
Timestamp:
11/26/2008 11:35:23 PM (16 years ago)
Author:
azaozz
Message:

More screen icons and fixes, includes patch by johnconners, fixes #8380

File:
1 edited

Legend:

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

    r9903 r9912  
    33283328}
    33293329
    3330 function screen_icon() {
     3330function screen_icon($name = '') {
    33313331    global $parent_file, $hook_suffix;
    33323332
    3333     if ( isset($parent_file) && !empty($parent_file) )
    3334         $name = substr($parent_file, 0, -4);
    3335     else
    3336         $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
    3337 
     3333    if ( empty($name) ) {
     3334        if ( isset($parent_file) && !empty($parent_file) )
     3335            $name = substr($parent_file, 0, -4);
     3336        else
     3337            $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
     3338    }
    33383339    unset($hook_suffix);
    33393340?>
Note: See TracChangeset for help on using the changeset viewer.