From 06bb9f1a17dfaa43d5c3f104c3b4b583d9f78934 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 18 Apr 2011 21:51:54 +0000 Subject: [PATCH] Introduce get_screen_icon(). Props aaroncampbell. fixes #15377 git-svn-id: https://develop.svn.wordpress.org/trunk@17656 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ebec668bc9..c37a936b71 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1918,7 +1918,11 @@ function screen_options($screen) { return $return; } -function screen_icon($screen = '') { +function screen_icon( $screen = '' ) { + echo get_screen_icon( $screen ); +} + +function get_screen_icon( $screen = '' ) { global $current_screen, $typenow; if ( empty($screen) ) @@ -1946,9 +1950,7 @@ function screen_icon($screen = '') { $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type ); } -?> -

-
'; } /** @@ -2185,4 +2187,3 @@ function get_submit_button( $text = NULL, $type = 'primary', $name = 'submit', $ return $button; } -