Changeset 20187 for trunk/wp-includes/media.php
- Timestamp:
- 03/15/2012 12:50:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r20179 r20187 1453 1453 $max_upload_size = wp_max_upload_size(); 1454 1454 1455 $params = array(1456 'action' => 'upload-attachment',1457 );1458 $params = apply_filters( 'plupload_default_params', $params );1459 1460 $params['_wpnonce'] = wp_create_nonce( 'media-form' );1461 1462 1455 $settings = array( 1463 1456 'runtimes' => 'html5,silverlight,flash,html4', … … 1471 1464 'multipart' => true, 1472 1465 'urlstream_upload' => true, 1473 'multipart_params' => $params,1474 1466 ); 1475 1467 1476 1468 $settings = apply_filters( 'plupload_default_settings', $settings ); 1469 1470 $params = array( 1471 'action' => 'upload-attachment', 1472 ); 1473 1474 $params = apply_filters( 'plupload_default_params', $params ); 1475 $params['_wpnonce'] = wp_create_nonce( 'media-form' ); 1476 $settings['multipart_params'] = $params; 1477 1477 1478 1478 $script = 'var wpPluploadDefaults = ' . json_encode( $settings ) . ';';
Note: See TracChangeset
for help on using the changeset viewer.