[wp-trac] [WordPress Trac] #46693: Site Health: debug info prints out list items with no wrapping list
WordPress Trac
noreply at wordpress.org
Thu Mar 28 10:34:41 UTC 2019
#46693: Site Health: debug info prints out list items with no wrapping list
---------------------------------------------+-----------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Administration | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: accessibility, coding-standards | site-health
---------------------------------------------+-----------------------------
In the "Info" page, within the accordions, some debug info are printed out
as list items.
However, these list items miss a wrapping `<ul>` element thus producing
invalid markup. Also, the list semantics is absent and assistive
technologies can't announce this markup as a list.
See https://core.trac.wordpress.org/browser/trunk/src/wp-admin/site-
health-info.php?rev=45044&marks=140-146#L137
{{{
if ( is_array( $field['value'] ) ) {
$values = '';
foreach ( $field['value'] as $name => $value ) {
$values .= sprintf(
'<li>%s: %s</li>',
esc_html( $name ),
esc_html( $value )
);
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46693>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list