From 1ef3438961d9f7336bcdcb6fee406c9c2810fa01 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 May 2014 03:45:14 +0000 Subject: [PATCH] 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 --- wp-includes/script-loader.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index bebe3b3304..e3837943b2 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -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.'),