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. git-svn-id: https://develop.svn.wordpress.org/trunk@28335 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f63b6cde3a
commit
b62ca9c298
@ -234,12 +234,6 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", array(), '2.2-20120417');
|
||||
|
||||
// common bits for both uploaders
|
||||
$max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
|
||||
|
||||
if ( empty($max_upload_size) )
|
||||
$max_upload_size = __('not configured');
|
||||
|
||||
// error message for both plupload and swfupload
|
||||
$uploader_l10n = array(
|
||||
'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
|
||||
|
Loading…
Reference in New Issue
Block a user