Make WordPress Core


Ignore:
Timestamp:
05/04/2011 07:49:25 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r17797 r17799  
    11131113    else
    11141114        $percentused = ( $used / $quota ) * 100;
    1115     $used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved' ) : 'spam';
     1115    $used_color = ( $percentused >= 70 ) ? ' spam' : '';
    11161116    $used = round( $used, 2 );
    11171117    $percentused = number_format( $percentused );
     
    11311131        <tr class="first">
    11321132            <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>
    1133             <td class="last t comments <?php echo $used_color;?>"><?php _e( 'Space Used' );?></td>
     1133            <td class="last t comments<?php echo $used_color;?>"><?php _e( 'Space Used' );?></td>
    11341134        </tr>
    11351135    </table>
Note: See TracChangeset for help on using the changeset viewer.