WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/12/2015 05:18:38 PM (7 years ago)
Author:
wonderboymusic
Message:

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

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r32653 r32730  
    454454 */
    455455function fix_import_form_size( $size ) {
    456     if ( upload_is_user_over_quota( false ) == true )
     456    if ( upload_is_user_over_quota( false ) ) {
    457457        return 0;
    458 
     458    }
    459459    $available = get_upload_space_available();
    460460    return min( $size, $available );
Note: See TracChangeset for help on using the changeset viewer.