Opened 6 weeks ago
Closed 6 weeks ago
#62907 closed defect (bug) (fixed)
6.7 broke accordion styles for themes/plugins using `do_accordion_sections()`
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7.2 | Priority: | normal |
Severity: | normal | Version: | 6.7 |
Component: | General | Keywords: | has-patch dev-reviewed |
Focuses: | Cc: |
Description
Core provides a meta box function, do_accordion_sections(), which will helpfully render meta boxes for a screen as collapsible accordions. WordPress 6.7 removed some CSS classes (stemming from #42002, I believe) from common.css
, and now any plugin or theme using do_accordion_sections()
is rendering partially-styled (but still functional) accordions.
Attachments (2)
Change History (18)
#1
@
6 weeks ago
- Milestone changed from Awaiting Review to 6.8
- Owner set to joemcgill
- Status changed from new to reviewing
#2
@
6 weeks ago
@mboynes Can you provide an example of a plugin or theme with this issue, so I can take a look at a specific case? I found a couple of examples and looked at them, but couldn't see the issue in those examples.
#3
@
6 weeks ago
Thanks for looking into this, @joedolson! Absolutely, here's a plugin I maintain for SEO fundamentals: https://github.com/alleyinteractive/wp-seo. This plugin has a settings screen which uses do_accordion_sections()
. You can see a screenshot of the issue in this GitHub issue on that repo.
It looks like the main issue may be the lack of styles on the new <button>
, which are specifically targeted toward/beneath .nav-menus-php
.
#4
@
6 weeks ago
Noting that depending on the size of the change required, I'm not completely opposed to including this in 6.7.2, but I would like to see it fixed ideally in the next 24 hours so that there is time to package an RC2.
Using this plugin, I believe I was able to replicate this.
#5
@
6 weeks ago
Based on those screenshots, it will be pretty simple; it's just going to require the same site of styles but applicable in a more generic way. I can probably get a patch done pretty quickly - I think it would be worth getting this into 6.7.2.
I'm a little surprised that this didn't come up for such a long time, but looking at usage it seems that this isn't a widely used function, and many extenders using it have already provided extensive custom styling.
This ticket was mentioned in PR #8262 on WordPress/wordpress-develop by @joedolson.
6 weeks ago
#6
- Keywords has-patch added
Trac ticket: https://core.trac.wordpress.org/ticket/62907
#7
@
6 weeks ago
Added a draft PR that does some re-mapping of styles to support generic accordion containers. Please check this over thoroughly, since we're trying to get these in soon!
#8
@
6 weeks ago
- Milestone changed from 6.8 to 6.7.2
Initial testing using chrome and the following conditions show promise so moving into 6.7.2 while testing continues.
- Hueman theme 3.7.24 to ensure #62494 is not reintroduced.
- reCAPTCHA in WP comments form plugin
- Using a basic plugin (below) to ensure #62491 isn't reintroduced
<?php /* Plugin Name: Testing for 62491 Description: Author: Jorbin Version: 1.7.2 Author URI: https://aaron.jorb.in/ */ function break_customizer_height() { ?> <style> body { background: #8ACE00; } </style> <?php } add_action( 'admin_enqueue_scripts', 'break_customizer_height' );
6 weeks ago
#9
I tested this out and it's a massive improvement. One nitpicky note, it looks like the carets are not vertically aligned, they're a pixel or two too close to the top
#11
@
6 weeks ago
- Keywords commit added
- Owner changed from joemcgill to joedolson
- Status changed from accepted to assigned
This looks ready to go, but leaving to @joedolson for final sign-off and commit.
#14
@
6 weeks ago
- Keywords dev-feedback added; commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backport to 6.7.
Thanks, @mboynes. @joedolson do you have the ability to take a look at this?