WordPress.org

Make WordPress Core

Ticket #12710: 12710.patch

File 12710.patch, 2.0 KB (added by ocean90, 5 years ago)
  • wp-admin/css/ms.dev.css

     
    4949        background: transparent url('../images/site-admin.png') no-repeat scroll 0px -1px; 
    5050} 
    5151 
    52 /* Dashboard: MU Specific Data */ 
     52/* Dashboard: MS Specific Data */ 
    5353#dashboard_right_now p.musub { 
    5454        margin-top: 12px; 
    5555        border-top: 1px solid #ececec; 
    5656        position: static; 
    5757} 
    5858 
     59#dashboard_right_now div.musubtable { 
     60        border-top: none; 
     61} 
     62 
     63#dashboard_right_now div.musubtable td.t { 
     64        white-space: pre-wrap;   
     65} 
     66 
    5967#dashboard_right_now td.b a.musublink { 
    6068        font-size: 16px; 
    6169} 
     70 
    6271tr.site-deleted { 
    6372        background:#f55; 
    6473} 
  • wp-admin/includes/ms.php

     
    450450                $percentused = ( $used / $quota ) * 100; 
    451451        $percentused = number_format($percentused); 
    452452        $used = round($used,2); 
    453         $used_color = ($used < 70) ? (($used >= 40) ? 'waiting' : 'approved') : 'spam'; 
     453        $used_color = ($percentused < 70) ? (($percentused >= 40) ? 'waiting' : 'approved') : 'spam'; 
    454454        ?> 
    455455        <p class="sub musub"><?php _e('Storage Space'); ?></p> 
    456         <div class="table"> 
     456        <div class="table table_content musubtable"> 
    457457        <table> 
    458458                <tr class="first"> 
    459459                        <td class="first b b-posts"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%sMB</a>' ), $quota ); ?></td> 
    460460                        <td class="t posts"><?php _e('Space Allowed'); ?></td> 
     461                </tr> 
     462        </table> 
     463        </div> 
     464        <div class="table table_discussion musubtable"> 
     465        <table> 
     466                <tr class="first"> 
    461467                        <td class="b b-comments"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%1sMB (%2s%%)</a>' ), $used, $percentused ); ?></td> 
    462468                        <td class="last t comments <?php echo $used_color;?>"><?php _e('Space Used');?></td> 
    463469                </tr> 
    464470        </table> 
    465471        </div> 
     472        <br class="clear" /> 
    466473        <?php 
    467474} 
    468475if ( current_user_can('edit_posts') )