From 47b9b4ab1ccbbe40d80ee4a543a4d5e86c623959 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 26 Sep 2010 08:51:34 +0000 Subject: [PATCH] Add a post type class to screen icons. props jfarthing84 for initial patch. see #14959. git-svn-id: http://svn.automattic.com/wordpress/trunk@15661 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 27a4f298f1..da7d72fb8b 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1915,10 +1915,14 @@ function screen_icon($screen = '') { if ( 'edit' == $name && isset($screen->post_type) && 'page' == $screen->post_type ) $name = 'edit-pages'; + + $class = 'icon32'; + if ( isset( $screen->post_type ) ) + $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type ); } ?> -

+