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.
Built from https://develop.svn.wordpress.org/trunk@45119


git-svn-id: http://core.svn.wordpress.org/trunk@44928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-04-06 15:36:51 +00:00
parent a431028795
commit 4d3fb9b22b
2 changed files with 4 additions and 2 deletions

View File

@ -902,7 +902,7 @@ class WP_Debug_Data {
* @return string The formatted data. * @return string The formatted data.
*/ */
public static function format( $info_array, $type = 'text' ) { public static function format( $info_array, $type = 'text' ) {
$return = ''; $return = "`\n";
foreach ( $info_array as $section => $details ) { foreach ( $info_array as $section => $details ) {
// Skip this section if there are no fields, or the section has been declared as private. // 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 .= "\n";
} }
$return .= "`";
return $return; return $return;
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.2-beta1-45118'; $wp_version = '5.2-beta1-45119';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.