WordPress.org

Make WordPress Core

Changeset 17656


Ignore:
Timestamp:
04/18/11 21:51:54 (4 years ago)
Author:
ryan
Message:

Introduce get_screen_icon(). Props aaroncampbell. fixes #15377

File:
1 edited

Legend:

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

    r17544 r17656  
    19191919} 
    19201920 
    1921 function screen_icon($screen = '') { 
     1921function screen_icon( $screen = '' ) { 
     1922    echo get_screen_icon( $screen ); 
     1923} 
     1924 
     1925function get_screen_icon( $screen = '' ) { 
    19221926    global $current_screen, $typenow; 
    19231927 
     
    19471951    } 
    19481952 
    1949 ?> 
    1950     <div id="icon-<?php echo $name; ?>" class="<?php echo $class; ?>"><br /></div> 
    1951 <?php 
     1953    return '<div id="icon-' . esc_attr( $name ) . '" class="' . $class . '"><br /></div>'; 
    19521954} 
    19531955 
     
    21862188    return $button; 
    21872189} 
    2188  
Note: See TracChangeset for help on using the changeset viewer.