#46693 closed defect (bug) (fixed)
Site Health: debug info prints out list items with no wrapping list
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.2 | Priority: | normal |
| Severity: | normal | Version: | 5.2 |
| Component: | Site Health | Keywords: | site-health has-patch |
| Focuses: | accessibility, coding-standards | Cc: |
Description
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.
if ( is_array( $field['value'] ) ) {
$values = '';
foreach ( $field['value'] as $name => $value ) {
$values .= sprintf(
'<li>%s: %s</li>',
esc_html( $name ),
esc_html( $value )
);
}
}
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Patch that wrap ul tag