Make WordPress Core

Changeset 19645


Ignore:
Timestamp:
01/02/2012 09:41:56 PM (13 years ago)
Author:
ryan
Message:

Better checking for values for multisite upload limits. fixes #19538 for 3.3

Location:
branches/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3

  • branches/3.3/wp-admin/includes/ms.php

    r19314 r19645  
    386386function get_space_allowed() {
    387387    $space_allowed = get_option( 'blog_upload_space' );
    388     if ( $space_allowed === false )
     388
     389    if ( ! is_numeric( $space_allowed ) )
    389390        $space_allowed = get_site_option( 'blog_upload_space' );
    390     if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
     391
     392    if ( ! is_numeric( $space_allowed ) )
    391393        $space_allowed = 50;
    392394
  • branches/3.3/wp-includes/capabilities.php

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.