From 4d3fb9b22bd7ab638ba6ae404ad538c5041bd7bc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 6 Apr 2019 15:36:51 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-debug-data.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 850ae9a860..e646cad3e4 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index cbb7cbfed4..b86923cf12 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.