WordPress.org

Make WordPress Core

Ticket #5911: 5911-11.diff

File 5911-11.diff, 599 bytes (added by andy, 6 years ago)

set swfupload max file size to match php ini

  • wp-admin/includes/media.php

     
    616616                                "auth_cookie" : "<?php echo $_COOKIE[AUTH_COOKIE]; ?>", 
    617617                                "type" : "media" 
    618618                        }, 
     619                        file_size_limit : "<?php echo wp_max_upload_size(); ?>b", 
    619620                        swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available 
    620621                        degraded_element_id : "html-upload-ui",   // when swfupload is unavailable 
    621622                        swfupload_loaded_handler : uploadLoaded,