Use correct var in MS dashboard_quota(). props ocean90, see #12710. also fixes sprintf string.
git-svn-id: https://develop.svn.wordpress.org/trunk@13835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2205476b34
commit
7f9b08bdb2
@ -448,9 +448,10 @@ function dashboard_quota() {
|
||||
$percentused = '100';
|
||||
else
|
||||
$percentused = ( $used / $quota ) * 100;
|
||||
$percentused = number_format($percentused);
|
||||
$used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved') : 'spam';
|
||||
$used = round( $used, 2 );
|
||||
$used_color = ($used < 70) ? (($used >= 40) ? 'waiting' : 'approved') : 'spam';
|
||||
$percentused = number_format( $percentused );
|
||||
|
||||
?>
|
||||
<p class="sub musub"><?php _e('Storage Space'); ?></p>
|
||||
<div class="table">
|
||||
@ -458,7 +459,7 @@ function dashboard_quota() {
|
||||
<tr class="first">
|
||||
<td class="first b b-posts"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%sMB</a>' ), $quota ); ?></td>
|
||||
<td class="t posts"><?php _e('Space Allowed'); ?></td>
|
||||
<td class="b b-comments"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%1sMB (%2s%%)</a>' ), $used, $percentused ); ?></td>
|
||||
<td class="b b-comments"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%1sMB (%2$s%%)</a>' ), $used, $percentused ); ?></td>
|
||||
<td class="last t comments <?php echo $used_color;?>"><?php _e('Space Used');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user