Changeset 15664
- Timestamp:
- 09/26/2010 09:34:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r15662 r15664 1901 1901 1902 1902 function screen_icon($screen = '') { 1903 global $current_screen ;1903 global $current_screen, $typenow; 1904 1904 1905 1905 if ( empty($screen) ) … … 1907 1907 elseif ( is_string($screen) ) 1908 1908 $name = $screen; 1909 1910 $class = 'icon32'; 1909 1911 1910 1912 if ( empty($name) ) { … … 1917 1919 $name = 'edit-pages'; 1918 1920 1919 $ class = 'icon32';1921 $post_type = ''; 1920 1922 if ( isset( $screen->post_type ) ) 1921 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen->post_type ); 1923 $post_type = $screen->post_type; 1924 elseif ( $current_screen == $screen ) 1925 $post_type = $typenow; 1926 if ( $post_type ) 1927 $class .= ' ' . sanitize_html_class( 'icon32-posts-' . $post_type ); 1922 1928 } 1923 1929
Note: See TracChangeset
for help on using the changeset viewer.