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. git-svn-id: https://develop.svn.wordpress.org/trunk@45119 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d72a0092d5
commit
17728c5215
@ -902,7 +902,7 @@ class WP_Debug_Data {
|
||||
* @return string The formatted data.
|
||||
*/
|
||||
public static function format( $info_array, $type = 'text' ) {
|
||||
$return = '';
|
||||
$return = "`\n";
|
||||
|
||||
foreach ( $info_array as $section => $details ) {
|
||||
// Skip this section if there are no fields, or the section has been declared as private.
|
||||
@ -943,6 +943,8 @@ class WP_Debug_Data {
|
||||
$return .= "\n";
|
||||
}
|
||||
|
||||
$return .= "`";
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user