Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#46738 closed enhancement (fixed)

Site Health: Simplify the checks for constants in debug information

Reported by: xkon's profile xkon Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords: site-health has-patch commit
Focuses: Cc:


Following the changes in #46692 there are constants that are defined by default. There's no need to check again if they are not defined so we can simplify things a bit in debug info for wp-constants.

We should also change the informational title of this section from These settings are defined in your wp-config.php file, and alter where and how parts of WordPress are loaded. as not all of them are actually defined in wp-config.php.

Attachments (1)

46738.diff (2.8 KB) - added by xkon 5 years ago.

Download all attachments as: .zip

Change History (5)

5 years ago

#1 @xkon
5 years ago

  • Keywords has-patch added

46738.diff changes the title into "These settings alter where and how parts of WordPress are loaded." and simplifies the checks/output of constants.

#2 @SergeyBiryukov
5 years ago

  • Keywords commit added

Looks good to me.

#3 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45078:

Site Health: Simplify the checks for constants that are always defined by default.

Props xkon.
Fixes #46738.

#4 @spacedmonkey
5 years ago

  • Component changed from Administration to Site Health
Note: See TracTickets for help on using tickets.