WordPress.org

Make WordPress Core

Opened 4 weeks ago

Last modified 2 weeks ago

#51680 new enhancement

Add WP_MEMORY_LIMIT to WP Debug Data class

Reported by: nre Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords: good-first-bug has-patch
Focuses: administration Cc:

Description

Please add the constant WP_MEMORY_LIMIT to class WP_Debug_Data.

When I check the WP report in site health report (wp-admin/site-health.php?tab=debug), I see a list of all WordPress constants, amongst others there is WP_MAX_MEMORY_LIMIT. Both constants are part of the documentation (https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php)

What is missing there is the constant WP_MEMORY_LIMIT.
Apparently because it's not registered in Class WP_Debug_Data in wp-admin/includes/class-wp-debug-data.php.

/editing-wp-config-php/#increasing-memory-allocated-to-php).

Attachments (1)

51680.diff (576 bytes) - added by sanketchodavadiya 2 weeks ago.
Created patch.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
4 weeks ago

  • Component changed from Administration to Site Health
  • Focuses administration added

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


4 weeks ago

#3 @talldanwp
4 weeks ago

  • Keywords needs-patch good-first-bug added
  • Milestone changed from Awaiting Review to Future Release

Hi @nre. The ticket was discussed during a triage session in slack:
https://wordpress.slack.com/archives/C02RQBWTW/p1604381419364900

We agreed this sounds like a good thing to do!

@sanketchodavadiya
2 weeks ago

Created patch.

#4 @sanketchodavadiya
2 weeks ago

  • Keywords has-patch added; needs-patch removed
  • Version set to trunk

#5 @hellofromTonya
2 weeks ago

  • Version changed from trunk to 5.2
Note: See TracTickets for help on using tickets.