Changeset 9886
- Timestamp:
- 05/19/2020 04:03:10 PM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r9862 r9886 60 60 // Cron tasks. 61 61 new Jobs\Manager(); 62 63 // Add upload size limit to limit plugin ZIP file uploads to 10M 64 add_filter( 'upload_size_limit', function( $size ) { 65 return 10 * MB_IN_BYTES; 66 } ); 62 67 63 68 // oEmbed whitlisting. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r9885 r9886 259 259 $upload_size_unit = wp_max_upload_size(); 260 260 261 // force max to 10M, since some sites seem to incorrectly report different values (temporary fix during investigation)262 if ( $upload_size_unit > 10485760 ) {263 $upload_size_unit = 10485760;264 }265 266 261 $byte_sizes = array( 'KB', 'MB', 'GB' ); 267 262
Note: See TracChangeset
for help on using the changeset viewer.