[wp-trac] [WordPress Trac] #62214: Update Site Health to use `do_accordion_sections()`

WordPress Trac noreply at wordpress.org
Sun Oct 13 19:20:31 UTC 2024


#62214: Update Site Health to use `do_accordion_sections()`
-------------------------+-------------------------------------
 Reporter:  joedolson    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Site Health  |    Version:  5.2
 Severity:  normal       |   Keywords:  2nd-opinion needs-patch
  Focuses:  ui           |
-------------------------+-------------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62214>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list