Don't loosely compare functions that return bool against a literal bool.

See #32444.


git-svn-id: https://develop.svn.wordpress.org/trunk@32730 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-06-12 17:18:38 +00:00
parent 40c54bc238
commit 3f29a2101d
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -453,9 +453,9 @@ function display_space_usage() {
* @return int Max size in bytes
*/
function fix_import_form_size( $size ) {
if ( upload_is_user_over_quota( false ) == true )
if ( upload_is_user_over_quota( false ) ) {
return 0;
}
$available = get_upload_space_available();
return min( $size, $available );
}