Make WordPress Core

Opened 12 months ago

Closed 12 months ago

Last modified 10 months ago

#46809 closed defect (bug) (fixed)

Site Health: Copy to clipboard is missing the code back-ticks

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


After the update to the copy to clipboard functionality, a regression occurred and the code back-ticks (`) no longer gets included around the status.

This should be re-implemented, to ensure pasting formats the data accordingly whenever possible.

Attachments (1)

46809.patch (711 bytes) - added by Clorith 12 months ago.

Download all attachments as: .zip

Change History (5)

12 months ago

#1 @Clorith
12 months ago

  • Keywords has-patch commit added; needs-patch removed

46809.patch adds the back-tick to the WP_Debug_Data::format() function, which is specifically made to format output for direct pasting to a support location.

#2 @SergeyBiryukov
12 months ago

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

In 45119:

Site Health: Restore backticks in "Copy to clipboard" functionality, accidentally removed in [45044].

The backticks ensure that the data is formatted accordingly on pasting whenever possible.

Props Clorith.
Fixes #46809.

#3 @SergeyBiryukov
12 months ago

In 45122:

PHPCS: Fix WPCS violation in [45119].

See #46809.

#4 @spacedmonkey
10 months ago

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