More screen icons and fixes, includes patch by johnconners, fixes #8380

git-svn-id: https://develop.svn.wordpress.org/trunk@9912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-11-26 23:35:23 +00:00
parent e200f660bc
commit 0b85e05cda
13 changed files with 161 additions and 86 deletions
+7 -6
View File
@@ -3327,14 +3327,15 @@ function add_contextual_help($screen, $help) {
$_wp_contextual_help[$screen] = $help;
}
function screen_icon() {
function screen_icon($name = '') {
global $parent_file, $hook_suffix;
if ( isset($parent_file) && !empty($parent_file) )
$name = substr($parent_file, 0, -4);
else
$name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
if ( empty($name) ) {
if ( isset($parent_file) && !empty($parent_file) )
$name = substr($parent_file, 0, -4);
else
$name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
}
unset($hook_suffix);
?>
<div id="icon-<?php echo $name; ?>" class="icon32"><br /></div>