Make WordPress Core

Changeset 22498


Ignore:
Timestamp:
11/09/2012 10:47:43 AM (12 years ago)
Author:
westi
Message:

Multisite: When displaying the upload quota and space used in the dashboard widget format them nicely.

File:
1 edited

Legend:

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

    r22396 r22498  
    11161116    <table>
    11171117        <tr class="first">
    1118             <td class="first b b-posts"><?php printf( __( '<a href="%1$s" title="Manage Uploads" class="musublink">%2$sMB</a>' ), esc_url( admin_url( 'upload.php' ) ), $quota ); ?></td>
     1118            <td class="first b b-posts"><?php printf( __( '<a href="%1$s" title="Manage Uploads" class="musublink">%2$sMB</a>' ), esc_url( admin_url( 'upload.php' ) ), number_format_i18n( $quota ) ); ?></td>
    11191119            <td class="t posts"><?php _e( 'Space Allowed' ); ?></td>
    11201120        </tr>
     
    11241124    <table>
    11251125        <tr class="first">
    1126             <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>
     1126            <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' ) ), number_format_i18n( $used, 2 ), $percentused ); ?></td>
    11271127            <td class="last t comments<?php echo $used_color;?>"><?php _e( 'Space Used' );?></td>
    11281128        </tr>
Note: See TracChangeset for help on using the changeset viewer.