From 7f9b08bdb208ca0461ac8798e39e6c6d44419e56 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 26 Mar 2010 21:50:54 +0000 Subject: [PATCH] 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 --- wp-admin/includes/ms.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 5cb9bb8371..a864892100 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -448,9 +448,10 @@ function dashboard_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'; + $used_color = ( $percentused < 70 ) ? ( ( $percentused >= 40 ) ? 'waiting' : 'approved') : 'spam'; + $used = round( $used, 2 ); + $percentused = number_format( $percentused ); + ?>

@@ -458,7 +459,7 @@ function dashboard_quota() { %sMB' ), $quota ); ?> - %1sMB (%2s%%)' ), $used, $percentused ); ?> + %1sMB (%2$s%%)' ), $used, $percentused ); ?>