Make WordPress Core

Ticket #15377: 15377.003.diff

File 15377.003.diff, 824 bytes (added by aaroncampbell, 14 years ago)
  • wp-admin/includes/template.php

     
    19181918        return $return;
    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
    19241928        if ( empty($screen) )
     
    19461950                        $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type );
    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
    19541956/**
     
    21852187
    21862188        return $button;
    21872189}
    2188