[wp-trac] [WordPress Trac] #54117: Changing memory limit descriptions

WordPress Trac noreply at wordpress.org
Tue Nov 28 14:01:11 UTC 2023


#54117: Changing memory limit descriptions
----------------------------+------------------------------
 Reporter:  fyremoon        |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  5.8.1
 Severity:  minor           |  Resolution:
 Keywords:  needs-patch     |     Focuses:  docs
----------------------------+------------------------------
Changes (by desrosj):

 * keywords:   => needs-patch
 * focuses:   => docs
 * component:  General => Bootstrap/Load


Comment:

 Thanks for this, @fyremoon, and welcome to Trac! Apologies that it took so
 long to receive a response.

 I'll start by saying the likelihood that the names of these constants are
 changed is almost 0. This is because of the
 [https://wpdirectory.net/search/01HGB39AJNDGJJ9ZM419Z9695N very high
 amount] of [https://wpdirectory.net/search/01HGB38FCF90VG74QH5872P4NK
 usage within plugins]. These two links also only show plugins referencing
 these constants. It's impossible to know how many people are assigning a
 custom value to these within `wp-config.php` files or by other means.

 That said, I think there are some opportunities to provide better inline
 documentation around how memory limits are set, and how they can be
 altered or controlled. On first look, it seems that
 `wp_raise_memory_limit()` and
 [https://core.trac.wordpress.org/browser/tags/6.4.1/src/wp-
 includes/functions.php#L7643 the filters within that function have some
 good details]. However,
 [https://core.trac.wordpress.org/browser/tags/6.4.1/src/wp-includes
 /default-constants.php#L45 where the constants are initially assigned
 value there is no documentation].

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


More information about the wp-trac mailing list