Make "Space Used" gray instead of green in multisite Right Now box. Props ocean90. fixes #17283

git-svn-id: http://svn.automattic.com/wordpress/trunk@17799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-05-04 19:49:25 +00:00
parent a7909cf4b6
commit 5161c47792
1 changed files with 2 additions and 2 deletions

View File

@ -1112,7 +1112,7 @@ function wp_dashboard_quota() {
$percentused = '100';
else
$percentused = ( $used / $quota ) * 100;
$used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved' ) : 'spam';
$used_color = ( $percentused >= 70 ) ? ' spam' : '';
$used = round( $used, 2 );
$percentused = number_format( $percentused );
@ -1130,7 +1130,7 @@ function wp_dashboard_quota() {
<table>
<tr class="first">
<td class="b b-comments"><?php printf( __( '<a href="%1$s" title="Manage Uploads" class="musublink">%2$sMB (%3$s%%)</a>' ), esc_url( admin_url( 'upload.php' ) ), $used, $percentused ); ?></td>
<td class="last t comments <?php echo $used_color;?>"><?php _e( 'Space Used' );?></td>
<td class="last t comments<?php echo $used_color;?>"><?php _e( 'Space Used' );?></td>
</tr>
</table>
</div>