Remove raquo. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4f04aad2db
commit
f221b0cfdc
|
@ -385,25 +385,27 @@ function display_space_usage() {
|
|||
|
||||
// Display File upload quota on dashboard
|
||||
function dashboard_quota() {
|
||||
if ( get_site_option( 'upload_space_check_disabled' ) ) {
|
||||
if ( get_site_option( 'upload_space_check_disabled' ) )
|
||||
return true;
|
||||
}
|
||||
|
||||
$quota = get_space_allowed();
|
||||
$used = get_dirsize( BLOGUPLOADDIR )/1024/1024;
|
||||
|
||||
if ($used > $quota) $percentused = '100';
|
||||
else $percentused = ( $used / $quota ) * 100;
|
||||
if ( $used > $quota )
|
||||
$percentused = '100';
|
||||
else
|
||||
$percentused = ( $used / $quota ) * 100;
|
||||
$percentused = number_format($percentused);
|
||||
$used = round($used,2);
|
||||
$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">
|
||||
<table>
|
||||
<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="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>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue