From 2548263bac4ee027382829b566fc58582e3f89ba Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 23 Apr 2019 21:05:52 +0000 Subject: [PATCH] Site Health: Allow some HTML (inline tags only) in the section descriptions. Add some more docs about expected formatting of the gathered data. Props kraftbj, jeherve, mukesh27, audrasjb, azaozz. Fixes #46878. Built from https://develop.svn.wordpress.org/trunk@45259 git-svn-id: http://core.svn.wordpress.org/trunk@45068 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 4 +++- wp-admin/site-health-info.php | 10 +--------- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 2a3855b146..72df262175 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -983,6 +983,8 @@ class WP_Debug_Data { * a prefix, both for consistency as well as avoiding key collisions. Note that the array keys are used as labels * for the copied data. * + * All strings are expected to be plain text except $description that can contain inline HTML tags (see below). + * * @since 5.2.0 * * @param array $args { @@ -994,7 +996,7 @@ class WP_Debug_Data { * * @type string $label The title for this section of the debug output. * @type string $description Optional. A description for your information section which may contain basic HTML - * markup: `em`, `strong` and `a` for linking to documentation or putting emphasis. + * markup, inline tags only as it is outputted in a paragraph. * @type boolean $show_count Optional. If set to `true` the amount of fields will be included in the title for * this section. * @type boolean $private Optional. If set to `true` the section and all associated fields will be excluded diff --git a/wp-admin/site-health-info.php b/wp-admin/site-health-info.php index a93b7bcdc7..42f2be0367 100644 --- a/wp-admin/site-health-info.php +++ b/wp-admin/site-health-info.php @@ -137,16 +137,8 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );