[wp-trac] [WordPress Trac] #32075: Only set WP_MAX_MEMORY_LIMIT by default when its greater than memory_limit

WordPress Trac noreply at wordpress.org
Fri Jul 8 11:26:59 UTC 2016


#32075: Only set WP_MAX_MEMORY_LIMIT by default when its greater than memory_limit
---------------------------------------------+-----------------------
 Reporter:  danielbachhuber                  |       Owner:  ocean90
     Type:  defect (bug)                     |      Status:  accepted
 Priority:  normal                           |   Milestone:  4.6
Component:  Bootstrap/Load                   |     Version:  3.2
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by ocean90):

 In [changeset:"38012"]:
 {{{
 #!CommitTicketReference repository="" revision="38012"
 Boostrap: Move `wp_convert_hr_to_bytes()` to wp-includes/load.php.

 `wp_convert_hr_to_bytes()` was previously defined in wp-includes/media.php
 because it's only used by `wp_max_upload_size()` in the same file.
 Moving this function to load.php allows us to improve core's memory limit
 handling.

 See #32075.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32075#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list