WordPress.org

Make WordPress Core

Changeset 8305


Ignore:
Timestamp:
07/10/2008 07:35:20 AM (14 years ago)
Author:
matt
Message:

Check for plugin updates more frequently, notify with double bubble trouble. Hat tip: mdawaffe. Fixes #7265.

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.css

    r8066 r8305  
    313313}
    314314
    315 #adminmenu li a #awaiting-mod {
     315#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
    316316    background-image: url(../images/comment-stalk-classic.gif);
    317317}
    318318
    319 #adminmenu li a #awaiting-mod span {
     319#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
    320320    background-color: #d54e21;
    321321    color: #fff;
     
    328328
    329329
    330 #adminmenu li a:hover #awaiting-mod span {
     330#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
    331331    background-color: #07273E;
    332332}
  • trunk/wp-admin/css/colors-fresh.css

    r8066 r8305  
    292292}
    293293
    294 #adminmenu li a #awaiting-mod {
     294#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
    295295    background-image: url(../images/comment-stalk-fresh.gif);
    296296}
    297297
    298 #adminmenu li a #awaiting-mod span, #rightnow .reallynow {
     298#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span, #rightnow .reallynow {
    299299    background-color: #d54e21;
    300300    color: #fff;
    301301}
    302302
    303 #adminmenu li a:hover #awaiting-mod span {
     303#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
    304304    background-color: #264761;
    305305}
  • trunk/wp-admin/includes/update.php

    r8060 r8305  
    117117    update_option( 'update_plugins', $new_option );
    118118}
    119 add_action( 'load-plugins.php', 'wp_update_plugins' );
     119add_action( 'init', 'wp_update_plugins' );
    120120
    121121function wp_plugin_update_row( $file, $plugin_data ) {
  • trunk/wp-admin/menu.php

    r7857 r8305  
    2626$menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php');
    2727$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
    28 $menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
     28
     29$update_plugins = get_option( 'update_plugins' );
     30$update_count = count( $update_plugins->response );
     31$menu[35] = array( sprintf( __('Plugins %s'), "<span id='update-plugins' class='count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php');
    2932if ( current_user_can('edit_users') )
    3033    $menu[40] = array(__('Users'), 'edit_users', 'users.php');
  • trunk/wp-admin/wp-admin.css

    r8077 r8305  
    728728}
    729729
    730 #adminmenu li a #awaiting-mod {
     730#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
    731731    position: absolute;
    732732    margin-left: -0.4em;
     
    739739}
    740740
    741 #adminmenu li a .count-0 {
     741#adminmenu li a .count-0, #sidemenu li a .count-0 {
    742742    display: none;
    743743}
     
    779779}
    780780
    781 #adminmenu li a:hover #awaiting-mod {
     781#adminmenu li a:hover #awaiting-mod, #sidemenu li a:hover #update-plugins {
    782782    background-position: -80px bottom;
    783783}
    784784
    785 #adminmenu li a #awaiting-mod span {
     785#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
    786786    top: -0.8em;
    787787    right: 0;
Note: See TracChangeset for help on using the changeset viewer.