#46693 closed defect (bug) (fixed)
Site Health: debug info prints out list items with no wrapping list
| Reported by: | afercia | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 |
| Component: | Site Health | Version: | 5.2 |
| Severity: | normal | Keywords: | site-health has-patch |
| Cc: | Focuses: | accessibility, coding-standards |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch that wrap ul tag