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:
parent
2a7aedc9e0
commit
594e1802bd
@ -136,7 +136,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
<?php
|
<?php
|
||||||
foreach ( $details['fields'] as $field ) {
|
foreach ( $details['fields'] as $field ) {
|
||||||
if ( is_array( $field['value'] ) ) {
|
if ( is_array( $field['value'] ) ) {
|
||||||
$values = '';
|
$values = '<ul>';
|
||||||
foreach ( $field['value'] as $name => $value ) {
|
foreach ( $field['value'] as $name => $value ) {
|
||||||
$values .= sprintf(
|
$values .= sprintf(
|
||||||
'<li>%s: %s</li>',
|
'<li>%s: %s</li>',
|
||||||
@ -144,6 +144,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
esc_html( $value )
|
esc_html( $value )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
$values .= '</ul>';
|
||||||
} else {
|
} else {
|
||||||
$values = esc_html( $field['value'] );
|
$values = esc_html( $field['value'] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user