WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 5 months ago

#46738 closed enhancement (fixed)

Site Health: Simplify the checks for constants in debug information

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

Description

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 8 months ago.

Download all attachments as: .zip

Change History (5)

@xkon
8 months ago

#1 @xkon
8 months 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
8 months ago

  • Keywords commit added

Looks good to me.

#3 @SergeyBiryukov
8 months 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 months ago

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