WordPress.org

Make WordPress Core

Ticket #14959: template.php.diff

File template.php.diff, 574 bytes (added by jfarthing84, 4 years ago)
  • template.php

     
    19151915 
    19161916                if ( 'edit' == $name && isset($screen->post_type) && 'page' == $screen->post_type ) 
    19171917                        $name = 'edit-pages'; 
     1918 
     1919                $class = 'icon32'; 
     1920                if ( isset($screen->post_type) ) 
     1921                        $class .= ' icon32-' . $screen->post_type; 
    19181922        } 
    19191923 
    19201924?> 
    1921         <div id="icon-<?php echo $name; ?>" class="icon32"><br /></div> 
     1925        <div id="icon-<?php echo $name; ?>" class="<?php echo $class; ?>"><br /></div> 
    19221926<?php 
    19231927} 
    19241928