Make "Space Used" gray instead of green in multisite Right Now box. Props ocean90. fixes #17283
git-svn-id: https://develop.svn.wordpress.org/trunk@17799 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
237f1c3e78
commit
db6f86d7bb
@ -1112,7 +1112,7 @@ function wp_dashboard_quota() {
|
|||||||
$percentused = '100';
|
$percentused = '100';
|
||||||
else
|
else
|
||||||
$percentused = ( $used / $quota ) * 100;
|
$percentused = ( $used / $quota ) * 100;
|
||||||
$used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved' ) : 'spam';
|
$used_color = ( $percentused >= 70 ) ? ' spam' : '';
|
||||||
$used = round( $used, 2 );
|
$used = round( $used, 2 );
|
||||||
$percentused = number_format( $percentused );
|
$percentused = number_format( $percentused );
|
||||||
|
|
||||||
@ -1130,7 +1130,7 @@ function wp_dashboard_quota() {
|
|||||||
<table>
|
<table>
|
||||||
<tr class="first">
|
<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="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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user