Check for plugin updates more frequently, notify with double bubble trouble. Hat tip: mdawaffe. Fixes #7265.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
642bd53a67
commit
120abd8e17
|
@ -312,11 +312,11 @@ ul#widget-list li.widget-list-item h4.widget-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod {
|
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
|
||||||
background-image: url(../images/comment-stalk-classic.gif);
|
background-image: url(../images/comment-stalk-classic.gif);
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod span {
|
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
|
||||||
background-color: #d54e21;
|
background-color: #d54e21;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
@ -327,7 +327,7 @@ ul#widget-list li.widget-list-item h4.widget-title {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#adminmenu li a:hover #awaiting-mod span {
|
#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
|
||||||
background-color: #07273E;
|
background-color: #07273E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -291,16 +291,16 @@ ul#widget-list li.widget-list-item h4.widget-title {
|
||||||
color: #d54e21;
|
color: #d54e21;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod {
|
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
|
||||||
background-image: url(../images/comment-stalk-fresh.gif);
|
background-image: url(../images/comment-stalk-fresh.gif);
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod span, #rightnow .reallynow {
|
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span, #rightnow .reallynow {
|
||||||
background-color: #d54e21;
|
background-color: #d54e21;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a:hover #awaiting-mod span {
|
#adminmenu li a:hover #awaiting-mod span, #sidemenu li a:hover #update-plugins span {
|
||||||
background-color: #264761;
|
background-color: #264761;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ function wp_update_plugins() {
|
||||||
|
|
||||||
update_option( 'update_plugins', $new_option );
|
update_option( 'update_plugins', $new_option );
|
||||||
}
|
}
|
||||||
add_action( 'load-plugins.php', 'wp_update_plugins' );
|
add_action( 'init', 'wp_update_plugins' );
|
||||||
|
|
||||||
function wp_plugin_update_row( $file, $plugin_data ) {
|
function wp_plugin_update_row( $file, $plugin_data ) {
|
||||||
$current = get_option( 'update_plugins' );
|
$current = get_option( 'update_plugins' );
|
||||||
|
|
|
@ -25,7 +25,10 @@ $awaiting_mod = $awaiting_mod->moderated;
|
||||||
$menu[15] = array(__('Design'), 'switch_themes', 'themes.php');
|
$menu[15] = array(__('Design'), 'switch_themes', 'themes.php');
|
||||||
$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');
|
$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');
|
||||||
$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
|
$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
|
||||||
$menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
|
|
||||||
|
$update_plugins = get_option( 'update_plugins' );
|
||||||
|
$update_count = count( $update_plugins->response );
|
||||||
|
$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');
|
||||||
if ( current_user_can('edit_users') )
|
if ( current_user_can('edit_users') )
|
||||||
$menu[40] = array(__('Users'), 'edit_users', 'users.php');
|
$menu[40] = array(__('Users'), 'edit_users', 'users.php');
|
||||||
else
|
else
|
||||||
|
|
|
@ -727,7 +727,7 @@ a.view-comment-post-link {
|
||||||
padding: 0 0 8px 17px;
|
padding: 0 0 8px 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod {
|
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-left: -0.4em;
|
margin-left: -0.4em;
|
||||||
margin-top: 0.2em;
|
margin-top: 0.2em;
|
||||||
|
@ -738,7 +738,7 @@ a.view-comment-post-link {
|
||||||
width: 1em;
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a .count-0 {
|
#adminmenu li a .count-0, #sidemenu li a .count-0 {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -778,11 +778,11 @@ strong .post-com-count {
|
||||||
background-position: center -3px;
|
background-position: center -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a:hover #awaiting-mod {
|
#adminmenu li a:hover #awaiting-mod, #sidemenu li a:hover #update-plugins {
|
||||||
background-position: -80px bottom;
|
background-position: -80px bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu li a #awaiting-mod span {
|
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
|
||||||
top: -0.8em;
|
top: -0.8em;
|
||||||
right: 0;
|
right: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue