Ticket #14897: 14897.8.diff
File 14897.8.diff, 6.3 KB (added by , 15 years ago) |
---|
-
wp-admin/css/colors-classic.dev.css
511 511 512 512 #adminmenu #awaiting-mod, 513 513 #adminmenu .update-plugins, 514 #adminmenu .update-themes, 514 515 #sidemenu a .update-plugins, 516 #sidemenu a .update-themes, 515 517 #rightnow .reallynow, 516 518 #plugin-information .action-button { 517 519 background-color: #d54e21; … … 520 522 521 523 #adminmenu li a:hover #awaiting-mod, 522 524 #adminmenu li a:hover .update-plugins, 523 #sidemenu li a:hover .update-plugins { 525 #adminmenu li a:hover .update-themes, 526 #sidemenu li a:hover .update-plugins, 527 #sidemenu li a:hover .update-themes { 524 528 background-color: #264761; 525 529 color: #fff; 526 530 } 527 531 528 532 #adminmenu li.current a #awaiting-mod, 529 533 #adminmenu li.current a .update-plugins, 534 #adminmenu li.current a .update-themes, 530 535 #adminmenu li.wp-has-current-submenu a .update-plugins, 531 #adminmenu li.wp-has-current-submenu a .update- plugins {536 #adminmenu li.wp-has-current-submenu a .update-themes { 532 537 background-color: #ddd; 533 538 color: #000; 534 539 text-shadow: none; … … 540 545 541 546 #adminmenu li.current a:hover #awaiting-mod, 542 547 #adminmenu li.current a:hover .update-plugins, 548 #adminmenu li.current a:hover .update-themes, 543 549 #adminmenu li.wp-has-current-submenu a:hover #awaiting-mod, 544 #adminmenu li.wp-has-current-submenu a:hover .update-plugins { 550 #adminmenu li.wp-has-current-submenu a:hover .update-plugins, 551 #adminmenu li.wp-has-current-submenu a:hover .update-themes { 545 552 background-color: #264761; 546 553 color: #fff; 547 554 } -
wp-admin/css/colors-fresh.dev.css
511 511 512 512 #adminmenu #awaiting-mod, 513 513 #adminmenu .update-plugins, 514 #adminmenu .update-themes, 514 515 #sidemenu a .update-plugins, 516 #sidemenu a .update-themes, 515 517 #rightnow .reallynow { 516 518 background-color: #464646; 517 519 color: #fff; … … 526 528 } 527 529 528 530 #adminmenu li.current a #awaiting-mod, 529 #adminmenu li a.wp-has-current-submenu .update-plugins{ 531 #adminmenu li a.wp-has-current-submenu .update-plugins, 532 #adminmenu li a.wp-has-current-submenu .update-themes { 530 533 background-color: #464646; 531 534 color: #fff; 532 535 -moz-box-shadow: #fff 0 -1px 0; -
wp-admin/css/wp-admin.dev.css
1201 1201 1202 1202 /* end side admin menu */ 1203 1203 1204 /* comments/plugins bubble in menu */1204 /* comments/plugins/themes bubble in menu */ 1205 1205 #adminmenu #awaiting-mod, 1206 1206 #adminmenu span.update-plugins, 1207 #sidemenu li a span.update-plugins { 1207 #adminmenu span.update-themes, 1208 #sidemenu li a span.update-plugins, 1209 #sidemenu li a span.update-themes { 1208 1210 position: absolute; 1209 1211 font-family: Helvetica, Arial, sans-serif; 1210 1212 font-size: 9px; … … 1220 1222 1221 1223 #adminmenu li #awaiting-mod span, 1222 1224 #adminmenu li span.update-plugins span, 1223 #sidemenu li a span.update-plugins span { 1225 #adminmenu li span.update-themes span, 1226 #sidemenu li a span.update-plugins span, 1227 #sidemenu li a span.update-themes span { 1224 1228 display: block; 1225 1229 padding: 0 6px; 1226 1230 } -
wp-admin/network/menu.php
20 20 21 21 $menu[10] = array(__('Users'), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div'); 22 22 23 $menu[15] = array(__('Themes'), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div'); 23 $plugin_update_count = $theme_update_count = $wordpress_update_count = 0; 24 $update_themes = get_site_transient( 'update_themes' ); 25 if ( !empty($update_themes->response) ) 26 $theme_update_count = count( $update_themes->response ); 27 $menu[15] = array(sprintf( __('Themes %s'), "<span class='update-themes count-$theme_update_count'><span class='theme-count'>" . number_format_i18n($theme_update_count) . "</span></span>" ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div'); 24 28 $submenu['themes.php'][5] = array( __('Themes'), 'manage_network_themes', 'themes.php' ); 25 29 $submenu['themes.php'][10] = array( _x('Add New', 'theme'), 'manage_network_themes', 'theme-install.php' ); 26 30 $submenu['themes.php'][15] = array( _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php' ); 27 31 28 $plugin_update_count = $theme_update_count = $wordpress_update_count = 0;29 32 $update_plugins = get_site_transient( 'update_plugins' ); 30 33 if ( !empty($update_plugins->response) ) 31 34 $plugin_update_count = count( $update_plugins->response ); … … 37 40 38 41 $menu[25] = array(__('Settings'), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'div'); 39 42 40 $update_themes = get_site_transient( 'update_themes' );41 if ( !empty($update_themes->response) )42 $theme_update_count = count( $update_themes->response );43 43 $update_wordpress = get_core_updates( array('dismissed' => false) ); 44 44 if ( !empty($update_wordpress) && !in_array( $update_wordpress[0]->response, array('development', 'latest') ) ) 45 45 $wordpress_update_count = 1; … … 56 56 $update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : ''; 57 57 58 58 $menu[30] = array(sprintf( __('Updates %s'), "<span class='update-plugins count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'manage_network', 'upgrade.php', '', 'menu-top menu-icon-tools', 'menu-update', 'div'); 59 $submenu[ 'upgrade.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>"), 'install_plugins', 'update-core.php');59 $submenu[ 'upgrade.php' ][10] = array( __( 'Updates' ), 'install_plugins', 'update-core.php'); 60 60 $submenu[ 'upgrade.php' ][15] = array( __( 'Update Network' ), 'manage_network', 'upgrade.php' ); 61 61 unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_count, $update_title, $update_themes, $update_plugins, $update_wordpress); 62 62