Changeset 48288 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/03/2020 11:13:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48275 r48288 3600 3600 * @param array $params Default Plupload parameters array. 3601 3601 */ 3602 $params = apply_filters( 'plupload_default_params', $params ); 3603 $params['_wpnonce'] = wp_create_nonce( 'media-form' ); 3602 $params = apply_filters( 'plupload_default_params', $params ); 3603 3604 $params['_wpnonce'] = wp_create_nonce( 'media-form' ); 3605 3604 3606 $defaults['multipart_params'] = $params; 3605 3607 … … 4687 4689 add_image_size( '2048x2048', 2048, 2048 ); 4688 4690 } 4691 4692 /** 4693 * Callback to enable showig of the user error when uploading .heic images. 4694 * 4695 * @since 5.5.0 4696 * 4697 * @param array[] $plupload_settings The settings for Plupload.js. 4698 * @return array[] Modified settings for Plupload.js. 4699 */ 4700 function wp_show_heic_upload_error( $plupload_settings ) { 4701 $plupload_settings['heic_upload_error'] = true; 4702 return $plupload_settings; 4703 }
Note: See TracChangeset
for help on using the changeset viewer.