[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
Sat Feb 13 14:56:08 UTC 2016


#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:
------------------------------------+-----------------------------

Comment (by jrf):

 > With the current patch the argument $filter isn't set. That should
 become {$context}_memory_limit.

 Good catch. Was an artifact remaining from an earlier version which didn't
 have the switch. Fixed in v5 of the patch.

 > Also having a default would be great so people could use it for their
 own usage.

 Not 100% sure what you mean, but the default for the `$filtered_limit` is
 the `WP_MAX_MEMORY_LIMIT` constant which can be set in `wp-config.php` and
 defaults to `256M` or the `php.ini` memory limit, whichever is higher.

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


More information about the wp-trac mailing list