Introduce get_screen_icon(). Props aaroncampbell. fixes #15377
git-svn-id: http://svn.automattic.com/wordpress/trunk@17656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6827de6cd9
commit
5fc53472ce
|
@ -1919,6 +1919,10 @@ function screen_options($screen) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function screen_icon( $screen = '' ) {
|
function screen_icon( $screen = '' ) {
|
||||||
|
echo get_screen_icon( $screen );
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_screen_icon( $screen = '' ) {
|
||||||
global $current_screen, $typenow;
|
global $current_screen, $typenow;
|
||||||
|
|
||||||
if ( empty($screen) )
|
if ( empty($screen) )
|
||||||
|
@ -1946,9 +1950,7 @@ function screen_icon($screen = '') {
|
||||||
$class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type );
|
$class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type );
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
return '<div id="icon-' . esc_attr( $name ) . '" class="' . $class . '"><br /></div>';
|
||||||
<div id="icon-<?php echo $name; ?>" class="<?php echo $class; ?>"><br /></div>
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2185,4 +2187,3 @@ function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $
|
||||||
|
|
||||||
return $button;
|
return $button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue