[wp-trac] [WordPress Trac] #13575: wp_max_upload_size() is not taking memory limit into account

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 8 14:53:32 UTC 2011


#13575: wp_max_upload_size() is not taking memory limit into account
--------------------------+-----------------------------
 Reporter:  hakre         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------

Comment (by hakre):

 Replying to [comment:4 dd32]:
 > A filter is not needed here, However, the ini_get() may return incorrect
 information, It may have been upped already by something such as
 WP_MEMORY_LIMIT.
 >

 I've uploaded some new patches that reflect both concerns, the filter and
 the original value. This still needs some tests (e.g. what happens if 64
 MB are consumed but setting get's restored to 16 MB original value - would
 that do a fatal error?) but tries to address accessing the original
 settings value.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13575#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list