[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
Tue Mar 1 20:58:38 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 ocean90):

 Replying to [comment:14 rasobar]:
 > Currently it is not listed in wp-config.php nor can an admin set it.

 Which doesn't mean that you can't add it to wp-config.php.
 `wp_initial_constants()` includes a `! defined( 'WP_MAX_MEMORY_LIMIT' )`
 check before it gets defined with 256M. You can also use the
 `admin_memory_limit` and `image_memory_limit` filters.

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


More information about the wp-trac mailing list