Make WordPress Core

Opened 4 months ago

#62214 new enhancement

Update Site Health to use `do_accordion_sections()`

Reported by: joedolson's profile joedolson Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords: 2nd-opinion needs-patch
Focuses: ui Cc:

Description

Currently, the do_accordion_sections() function is used in only one place - the navigation menus. However, the same pattern and JS is used in Site Health, as well.

This has a lot to do with how the function is set up, which is limiting to its effective use. It's completely dependent on the presence of meta boxes, and has no flexibility for other usage.

Site Health, on the other hand, uses a combination of Underscore JS templates to render the content.

This ticket is to explore the possibility of using the same codebase to output these two accordion patterns and reduce code duplication.

See #42002.

Change History (0)

Note: See TracTickets for help on using tickets.