Ticket #21019: 21019.2-with-sprites.diff
File 21019.2-with-sprites.diff, 6.5 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
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Cannot display: file marked as a binary type. svn:mime-type = image/png Cannot display: file marked as a binary type. svn:mime-type = image/png Cannot display: file marked as a binary type. svn:mime-type = image/png
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: -330px -34px; 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: -330px -2px; 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, 1230 #icon-generic { 1215 1231 background-image: url(../images/icons32.png?ver=20111206); 1216 1232 } 1217 1233 … … 1282 1298 background-position: -659px -5px; 1283 1299 } 1284 1300 1301 .icon32.icon-generic, 1302 #icon-generic { 1303 background-position: -???px -5px; 1304 } 1305 1285 1306 /* end screen icons */ 1286 1307 1287 1308 /* Diff */ … … 1952 1973 .icon32.icon-settings, 1953 1974 #icon-options-general, 1954 1975 .icon32.icon-site, 1955 #icon-ms-admin { 1976 #icon-ms-admin, 1977 .icon32.icon-generic, 1978 #icon-generic { 1956 1979 background-image: url("../images/icons32-2x.png?ver=20120916"); 1957 background-size: 7 08px 45px;1980 background-size: 756px 45px; 1958 1981 } 1959 1982 1960 1983 .icon16.icon-dashboard, … … 1980 2003 .icon16.icon-settings, 1981 2004 .menu-icon-settings div.wp-menu-image, 1982 2005 .icon16.icon-site, 1983 .menu-icon-site div.wp-menu-image { 2006 .menu-icon-site div.wp-menu-image, 2007 .icon16.icon-generic, 2008 .menu-icon-generic div.wp-menu-image { 1984 2009 background-image: url("../images/menu-2x.png?ver=20120916"); 1985 2010 background-size: 390px 64px; 1986 2011 } -
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: -330px -34px; 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: -330px -2px; 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, 1273 #icon-generic { 1259 1274 background-image: url(../images/icons32-vs.png?ver=20111206); 1260 1275 } 1261 1276 … … 1326 1341 background-position: -659px -5px; 1327 1342 } 1328 1343 1344 .icon32.icon-generic, 1345 #icon-generic { 1346 background-position: -708px -5px; 1347 } 1348 1329 1349 /* end screen icons */ 1330 1350 1331 1351 /* Diff */ … … 2029 2049 2030 2050 #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, 2031 2051 #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle, 2032 .nav-menus-php .item-edit:hover, 2052 .nav-menus-php .item-edit:hover, 2033 2053 .sidebar-name:hover .sidebar-name-arrow, 2034 2054 .rtl #adminmenu li.wp-has-current-submenu.wp-menu-open .wp-menu-toggle, 2035 2055 .rtl #adminmenu li.wp-has-current-submenu:hover .wp-menu-toggle, … … 2074 2094 .icon32.icon-settings, 2075 2095 #icon-options-general, 2076 2096 .icon32.icon-site, 2077 #icon-ms-admin { 2097 #icon-ms-admin, 2098 .icon32.icon-generic, 2099 #icon-generic { 2078 2100 background-image: url("../images/icons32-vs-2x.png?ver=20120916"); 2079 background-size: 7 08px 45px;2101 background-size: 756px 45px; 2080 2102 } 2081 2103 2082 2104 .icon16.icon-dashboard, … … 2102 2124 .icon16.icon-settings, 2103 2125 .menu-icon-settings div.wp-menu-image, 2104 2126 .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 2127 .menu-icon-site div.wp-menu-image, 2128 .icon16.icon-generic, 2129 .menu-icon-generic div.wp-menu-image { 2130 background-image: url("../images/menu-vs-2x.png?ver=20120916"); 2107 2131 background-size: 390px 64px; 2108 2132 } 2109 2133