Changeset 18482 for trunk/wp-includes/script-loader.php
- Timestamp:
- 07/29/2011 08:59:35 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r18479 r18482 199 199 $scripts->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop$suffix.js", array('jquery'), '0.9.8-20110113'); 200 200 201 $scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", false, '2.2'); 202 203 $scripts->add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2201-20110113'); 204 $scripts->add( 'swfupload-swfobject', '/wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201a'); 205 $scripts->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2201'); 206 $scripts->add( 'swfupload-speed', '/wp-includes/js/swfupload/plugins/swfupload.speed.js', array('swfupload'), '2201'); 207 208 if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) { 201 202 $scripts->add( 'plupload', '/wp-includes/js/plupload/plupload.js', false, '1.4.3.2'); 203 $scripts->add( 'plupload-html5', '/wp-includes/js/plupload/plupload.html5.js', array('plupload'), '1.4.3.2'); 204 $scripts->add( 'plupload-flash', '/wp-includes/js/plupload/plupload.flash.js', array('plupload'), '1.4.3.2'); 205 $scripts->add( 'plupload-silverlight', '/wp-includes/js/plupload/plupload.silverlight.js', array('plupload'), '1.4.3.2'); 206 $scripts->add( 'plupload-gears', '/wp-includes/js/plupload/plupload.gears.js', array('plupload'), '1.4.3.2'); 207 $scripts->add( 'plupload-html4', '/wp-includes/js/plupload/plupload.html4.js', array('plupload'), '1.4.3.2'); 208 209 // TODO: find out if we can use the plupload.full.js (it does load browserplus) 210 $scripts->add( 'plupload-full', false, array('plupload', 'plupload-html5', 'plupload-flash', 'plupload-silverlight', 'plupload-gears', 'plupload-html4'), '1.4.3.2'); 211 212 $scripts->add( 'plupload-handlers', '/wp-includes/js/plupload/handlers.js', array('plupload-full', 'jquery'), '1.4.3.2'); 213 214 // TODO: find out if we really need this debug clause with plupload 215 /*if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) { 209 216 // queue all SWFUpload scripts that are used by default 210 217 $scripts->add( 'swfupload-all', false, array('swfupload', 'swfupload-swfobject', 'swfupload-queue'), '2201'); 211 218 } else { 212 $scripts->add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201a'); 213 } 214 215 $scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20110524'); 219 $scripts->add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201'); 220 }*/ 221 216 222 $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post; 217 223 if ( empty($max_upload_size) ) 218 224 $max_upload_size = __('not configured'); 219 // these error messages came from the sample swfupload js, they might need changing. 220 $scripts->add_script_data( 'swfupload-handlers', 'swfuploadL10n', array( 221 'queue_limit_exceeded' => __('You have attempted to queue too many files.'), 225 226 $scripts->add_script_data( 'plupload-handlers', 'pluploadL10n', array( 222 227 'file_exceeds_size_limit' => __('This file exceeds the maximum upload size for this site.'), 223 228 'zero_byte_file' => __('This file is empty. Please try another.'), 224 229 'invalid_filetype' => __('This file type is not allowed. Please try another.'), 230 'not_an_image' => __('This file is not an image. Please try another.'), 231 'image_memory_exceeded' => __('Memery exceeded. Please try another smaller file.'), 232 'image_dimensions_exceeded' => __('This is larger than the maximum size. Please try another.'), 225 233 'default_error' => __('An error occurred in the upload. Please try again later.'), 226 234 'missing_upload_url' => __('There was a configuration error. Please contact the server administrator.'), … … 235 243 'crunching' => __('Crunching…'), 236 244 'deleted' => __('moved to the trash.'), 237 'error_uploading' => __('“%s” has failed to upload due to an error') 245 'error_uploading' => __('“%s” has failed to upload due to an error'), 238 246 ) ); 239 247
Note: See TracChangeset
for help on using the changeset viewer.