WordPress.org

Make WordPress Core

Changeset 28335


Ignore:
Timestamp:
05/07/2014 03:44:06 AM (7 years ago)
Author:
wonderboymusic
Message:

In wp_default_scripts(), $max_upload_size and its entangled children $max_up and $max_post create quite the ternary operator... that is never used.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r28238 r28335  
    234234
    235235    $scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", array(), '2.2-20120417');
    236 
    237     // common bits for both uploaders
    238     $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
    239 
    240     if ( empty($max_upload_size) )
    241         $max_upload_size = __('not configured');
    242236
    243237    // error message for both plupload and swfupload
Note: See TracChangeset for help on using the changeset viewer.