mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@28335 git-svn-id: http://core.svn.wordpress.org/trunk@28163 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5b6b17fc80
commit
1ef3438961
@ -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