Site Health: Add missing <ul> tags for lists on Site Info page.

Props mukesh27, chetan200891, afercia.
Fixes #46693.

git-svn-id: https://develop.svn.wordpress.org/trunk@45068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-03-29 11:13:27 +00:00
parent 2a7aedc9e0
commit 594e1802bd

View File

@ -136,7 +136,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<?php
foreach ( $details['fields'] as $field ) {
if ( is_array( $field['value'] ) ) {
$values = '';
$values = '<ul>';
foreach ( $field['value'] as $name => $value ) {
$values .= sprintf(
'<li>%s: %s</li>',
@ -144,6 +144,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
esc_html( $value )
);
}
$values .= '</ul>';
} else {
$values = esc_html( $field['value'] );
}