[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
Mon Nov 30 12:55:07 UTC 2015


#32075: Only set WP_MAX_MEMORY_LIMIT by default when its greater than memory_limit
------------------------------------+-----------------------------
 Reporter:  danielbachhuber         |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Bootstrap/Load          |     Version:  3.2
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by A5hleyRich):

 * keywords:  needs-patch => has-patch dev-feedback


Comment:

 Implemented suggestions by @nacin. `WP_MAX_MEMORY_LIMIT` is set to
 `memory_limit` if greater than php.ini `memory_limit`. New function
 `wp_raise_memory_limit()` added which sets the limit and allows the value
 to be filtered (can only be raised).

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


More information about the wp-trac mailing list