Ticket #21019: 21019.2.diff
File 21019.2.diff, 5.4 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/plugin.php
902 902 if ( !empty( $function ) && !empty( $hookname ) && current_user_can( $capability ) ) 903 903 add_action( $hookname, $function ); 904 904 905 if ( empty($icon_url) ) 906 $icon_url = esc_url( admin_url( 'images/generic.png' ) ); 907 else 905 if ( empty($icon_url) ) { 906 $icon_url = 'none'; 907 $icon_class = 'menu-icon-generic '; 908 } else { 908 909 $icon_url = set_url_scheme( $icon_url ); 910 $icon_class = ''; 911 } 909 912 910 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $ hookname, $hookname, $icon_url );913 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); 911 914 912 915 if ( null === $position ) 913 916 $menu[] = $new_menu; -
wp-admin/css/colors-fresh.css
1043 1043 .icon16.icon-settings, 1044 1044 .menu-icon-settings div.wp-menu-image, 1045 1045 .icon16.icon-site, 1046 .menu-icon-site div.wp-menu-image { 1046 .menu-icon-site div.wp-menu-image, 1047 .icon16.icon-generic, 1048 .menu-icon-generic div.wp-menu-image { 1047 1049 background-image: url('../images/menu.png?ver=20120201'); 1048 1050 } 1049 1051 … … 1178 1180 #adminmenu .menu-icon-site.current div.wp-menu-image { 1179 1181 background-position: -359px -1px; 1180 1182 } 1183 1184 .icon16.icon-generic, 1185 #adminmenu .menu-icon-generic div.wp-menu-image { 1186 background-position: -389px -33px; 1187 } 1188 1189 #adminmenu .menu-icon-generic:hover div.wp-menu-image, 1190 #adminmenu .menu-icon-generic.wp-has-current-submenu div.wp-menu-image, 1191 #adminmenu .menu-icon-generic.current div.wp-menu-image { 1192 background-position: -389px -1px; 1193 } 1194 1181 1195 /* end menu and screen icons */ 1182 1196 1183 1197 /* Screen Icons */ … … 1211 1225 .icon32.icon-settings, 1212 1226 #icon-options-general, 1213 1227 .icon32.icon-site, 1214 #icon-ms-admin { 1228 #icon-ms-admin, 1229 .icon32.icon-generic { 1215 1230 background-image: url(../images/icons32.png?ver=20111206); 1216 1231 } 1217 1232 … … 1282 1297 background-position: -659px -5px; 1283 1298 } 1284 1299 1300 .icon32.icon-generic { 1301 background-position: -???px -5px; 1302 } 1303 1285 1304 /* end screen icons */ 1286 1305 1287 1306 /* Diff */ … … 1952 1971 .icon32.icon-settings, 1953 1972 #icon-options-general, 1954 1973 .icon32.icon-site, 1955 #icon-ms-admin { 1974 #icon-ms-admin, 1975 .icon32.icon-generic { 1956 1976 background-image: url("../images/icons32-2x.png?ver=20120916"); 1957 1977 background-size: 708px 45px; 1958 1978 } … … 1980 2000 .icon16.icon-settings, 1981 2001 .menu-icon-settings div.wp-menu-image, 1982 2002 .icon16.icon-site, 1983 .menu-icon-site div.wp-menu-image { 2003 .menu-icon-site div.wp-menu-image, 2004 .icon16.icon-generic, 2005 .menu-icon-generic div.wp-menu-image { 1984 2006 background-image: url("../images/menu-2x.png?ver=20120916"); 1985 2007 background-size: 390px 64px; 1986 2008 } -
wp-admin/css/colors-classic.css
1087 1087 .icon16.icon-settings, 1088 1088 .menu-icon-settings div.wp-menu-image, 1089 1089 .icon16.icon-site, 1090 .menu-icon-site div.wp-menu-image { 1090 .menu-icon-site div.wp-menu-image, 1091 .icon16.icon-generic, 1092 .menu-icon-generic div.wp-menu-image { 1091 1093 background-image: url('../images/menu-vs.png?ver=20120201'); 1092 1094 } 1093 1095 … … 1222 1224 #adminmenu .menu-icon-site.current div.wp-menu-image { 1223 1225 background-position: -359px -1px; 1224 1226 } 1227 1228 .icon16.icon-generic, 1229 #adminmenu .menu-icon-generic div.wp-menu-image { 1230 background-position: -389px -33px; 1231 } 1232 1233 #adminmenu .menu-icon-generic:hover div.wp-menu-image, 1234 #adminmenu .menu-icon-generic.wp-has-current-submenu div.wp-menu-image, 1235 #adminmenu .menu-icon-generic.current div.wp-menu-image { 1236 background-position: -389px -1px; 1237 } 1225 1238 /* end menu and screen icons */ 1226 1239 1227 1240 /* Screen Icons */ … … 1255 1268 .icon32.icon-settings, 1256 1269 #icon-options-general, 1257 1270 .icon32.icon-site, 1258 #icon-ms-admin { 1271 #icon-ms-admin, 1272 .icon32.icon-generic { 1259 1273 background-image: url(../images/icons32-vs.png?ver=20111206); 1260 1274 } 1261 1275 … … 1326 1340 background-position: -659px -5px; 1327 1341 } 1328 1342 1343 .icon32.icon-generic { 1344 background-position: -???px -5px; 1345 } 1346 1329 1347 /* end screen icons */ 1330 1348 1331 1349 /* Diff */ … … 2029 2047 2030 2048 #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, 2031 2049 #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle, 2032 .nav-menus-php .item-edit:hover, 2050 .nav-menus-php .item-edit:hover, 2033 2051 .sidebar-name:hover .sidebar-name-arrow, 2034 2052 .rtl #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, 2035 2053 .rtl #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle, … … 2074 2092 .icon32.icon-settings, 2075 2093 #icon-options-general, 2076 2094 .icon32.icon-site, 2077 #icon-ms-admin { 2095 #icon-ms-admin, 2096 .icon32.icon-generic { 2078 2097 background-image: url("../images/icons32-vs-2x.png?ver=20120916"); 2079 2098 background-size: 708px 45px; 2080 2099 } … … 2102 2121 .icon16.icon-settings, 2103 2122 .menu-icon-settings div.wp-menu-image, 2104 2123 .icon16.icon-site, 2105 .menu-icon-site div.wp-menu-image { 2106 background-image: url("../images/menu-2x.png?ver=20120916"); // @todo needs menu-vs-2x.png 2124 .menu-icon-site div.wp-menu-image, 2125 .icon16.icon-generic, 2126 .menu-icon-generic div.wp-menu-image { 2127 background-image: url("../images/menu-vs-2x.png?ver=20120916"); 2107 2128 background-size: 390px 64px; 2108 2129 } 2109 2130