Changeset 22393
- Timestamp:
- 11/06/2012 12:25:18 AM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-classic.css
r22391 r22393 1091 1091 .menu-icon-settings div.wp-menu-image, 1092 1092 .icon16.icon-site, 1093 .menu-icon-site div.wp-menu-image { 1094 background-image: url('../images/menu-vs.png?ver=20120201'); 1093 .menu-icon-site div.wp-menu-image, 1094 .icon16.icon-generic, 1095 .menu-icon-generic div.wp-menu-image { 1096 background-image: url(../images/menu-vs.png?ver=20121105); 1095 1097 } 1096 1098 … … 1225 1227 #adminmenu .menu-icon-site.current div.wp-menu-image { 1226 1228 background-position: -359px -1px; 1229 } 1230 1231 .icon16.icon-generic, 1232 #adminmenu .menu-icon-generic div.wp-menu-image { 1233 background-position: -330px -34px; 1234 } 1235 1236 #adminmenu .menu-icon-generic:hover div.wp-menu-image, 1237 #adminmenu .menu-icon-generic.wp-has-current-submenu div.wp-menu-image, 1238 #adminmenu .menu-icon-generic.current div.wp-menu-image { 1239 background-position: -330px -2px; 1227 1240 } 1228 1241 /* end menu and screen icons */ … … 1259 1272 #icon-options-general, 1260 1273 .icon32.icon-site, 1261 #icon-ms-admin { 1262 background-image: url(../images/icons32-vs.png?ver=20111206); 1274 #icon-ms-admin, 1275 .icon32.icon-generic, 1276 #icon-generic { 1277 background-image: url(../images/icons32-vs.png?ver=20121105); 1263 1278 } 1264 1279 … … 1328 1343 #icon-ms-admin { 1329 1344 background-position: -659px -5px; 1345 } 1346 1347 .icon32.icon-generic, 1348 #icon-generic { 1349 background-position: -708px -5px; 1330 1350 } 1331 1351 … … 2078 2098 #icon-options-general, 2079 2099 .icon32.icon-site, 2080 #icon-ms-admin { 2081 background-image: url("../images/icons32-vs-2x.png?ver=20120916"); 2082 background-size: 708px 45px; 2100 #icon-ms-admin, 2101 .icon32.icon-generic, 2102 #icon-generic { 2103 background-image: url(../images/icons32-vs-2x.png?ver=20121105); 2104 background-size: 756px 45px; 2083 2105 } 2084 2106 … … 2106 2128 .menu-icon-settings div.wp-menu-image, 2107 2129 .icon16.icon-site, 2108 .menu-icon-site div.wp-menu-image { 2109 background-image: url("../images/menu-2x.png?ver=20120916"); // @todo needs menu-vs-2x.png 2130 .menu-icon-site div.wp-menu-image, 2131 .icon16.icon-generic, 2132 .menu-icon-generic div.wp-menu-image { 2133 background-image: url(../images/menu-vs-2x.png?ver=20121105); 2110 2134 background-size: 390px 64px; 2111 2135 } -
trunk/wp-admin/css/colors-fresh.css
r22391 r22393 1047 1047 .menu-icon-settings div.wp-menu-image, 1048 1048 .icon16.icon-site, 1049 .menu-icon-site div.wp-menu-image { 1050 background-image: url('../images/menu.png?ver=20120201'); 1049 .menu-icon-site div.wp-menu-image, 1050 .icon16.icon-generic, 1051 .menu-icon-generic div.wp-menu-image { 1052 background-image: url(../images/menu.png?ver=20121105); 1051 1053 } 1052 1054 … … 1182 1184 background-position: -359px -1px; 1183 1185 } 1186 1187 .icon16.icon-generic, 1188 #adminmenu .menu-icon-generic div.wp-menu-image { 1189 background-position: -330px -34px; 1190 } 1191 1192 #adminmenu .menu-icon-generic:hover div.wp-menu-image, 1193 #adminmenu .menu-icon-generic.wp-has-current-submenu div.wp-menu-image, 1194 #adminmenu .menu-icon-generic.current div.wp-menu-image { 1195 background-position: -330px -2px; 1196 } 1197 1184 1198 /* end menu and screen icons */ 1185 1199 … … 1215 1229 #icon-options-general, 1216 1230 .icon32.icon-site, 1217 #icon-ms-admin { 1218 background-image: url(../images/icons32.png?ver=20111206); 1231 #icon-ms-admin, 1232 .icon32.icon-generic, 1233 #icon-generic { 1234 background-image: url(../images/icons32.png?ver=20121105); 1219 1235 } 1220 1236 … … 1284 1300 #icon-ms-admin { 1285 1301 background-position: -659px -5px; 1302 } 1303 1304 .icon32.icon-generic, 1305 #icon-generic { 1306 background-position: -708px -5px; 1286 1307 } 1287 1308 … … 1956 1977 #icon-options-general, 1957 1978 .icon32.icon-site, 1958 #icon-ms-admin { 1959 background-image: url("../images/icons32-2x.png?ver=20120916"); 1960 background-size: 708px 45px; 1979 #icon-ms-admin, 1980 .icon32.icon-generic, 1981 #icon-generic { 1982 background-image: url(../images/icons32-2x.png?ver=20121105); 1983 background-size: 756px 45px; 1961 1984 } 1962 1985 … … 1984 2007 .menu-icon-settings div.wp-menu-image, 1985 2008 .icon16.icon-site, 1986 .menu-icon-site div.wp-menu-image { 1987 background-image: url("../images/menu-2x.png?ver=20120916"); 2009 .menu-icon-site div.wp-menu-image, 2010 .icon16.icon-generic, 2011 .menu-icon-generic div.wp-menu-image { 2012 background-image: url(../images/menu-2x.png?ver=20121105); 1988 2013 background-size: 390px 64px; 1989 2014 } -
trunk/wp-admin/includes/plugin.php
r21877 r22393 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 ); 909 910 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 910 $icon_class = ''; 911 } 912 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 )
Note: See TracChangeset
for help on using the changeset viewer.