Remove raquo. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6819c81f3d
commit
345b2656c5
|
@ -385,25 +385,27 @@ function display_space_usage() {
|
||||||
|
|
||||||
// Display File upload quota on dashboard
|
// Display File upload quota on dashboard
|
||||||
function dashboard_quota() {
|
function dashboard_quota() {
|
||||||
if ( get_site_option( 'upload_space_check_disabled' ) ) {
|
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
$quota = get_space_allowed();
|
$quota = get_space_allowed();
|
||||||
$used = get_dirsize( BLOGUPLOADDIR )/1024/1024;
|
$used = get_dirsize( BLOGUPLOADDIR )/1024/1024;
|
||||||
|
|
||||||
if ($used > $quota) $percentused = '100';
|
if ( $used > $quota )
|
||||||
else $percentused = ( $used / $quota ) * 100;
|
$percentused = '100';
|
||||||
|
else
|
||||||
|
$percentused = ( $used / $quota ) * 100;
|
||||||
$percentused = number_format($percentused);
|
$percentused = number_format($percentused);
|
||||||
$used = round($used,2);
|
$used = round($used,2);
|
||||||
$used_color = ($used < 70) ? (($used >= 40) ? 'waiting' : 'approved') : 'spam';
|
$used_color = ($used < 70) ? (($used >= 40) ? 'waiting' : 'approved') : 'spam';
|
||||||
?>
|
?>
|
||||||
<p class="sub musub"><?php _e("Storage Space <a href='upload.php' title='Manage Uploads...'>»</a>"); ?></p>
|
<p class="sub musub"><?php _e('Storage Space'); ?></p>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<table>
|
<table>
|
||||||
<tr class="first">
|
<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="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="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 class="b b-comments"><?php printf( __( '<a href="upload.php" title="Manage Uploads" class="musublink">%1sMB (%2s%%)</a>' ), $used, $percentused ); ?>
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue