WordPress.org

Make WordPress Core

Ticket #15377: 15377.002.diff

File 15377.002.diff, 818 bytes (added by aaroncampbell, 7 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 sprintf('<div id="icon-%s" class="%s"><br /></div>', esc_attr( $name ), $class);
    19521954}
    19531955
    19541956/**
     
    21852187
    21862188        return $button;
    21872189}
    2188