#60499 closed defect (bug) (fixed)
Duplicate CSS in src/wp-includes/css/media-views.css
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.6 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Media | Keywords: | has-patch has-test-info commit |
| Focuses: | css | Cc: |
Description
There's about 60 lines (including empty lines) of duplicate CSS in src/wp-includes/css/media-views.css all related to the 'load more' button shown at the bottom of the media grid.
Compare the CSS starting at line 1272:
https://github.com/WordPress/wordpress-develop/blob/93ba10dae607581c00eac627e82dff61d3e5dca6/src/wp-includes/css/media-views.css#L1272
with the one starting at line 1317:
https://github.com/WordPress/wordpress-develop/blob/93ba10dae607581c00eac627e82dff61d3e5dca6/src/wp-includes/css/media-views.css#L1317
While it doesn't harm anything, it's just redundant code that can be safely removed.
Hint: use a tool of your choice to find all the duplicated CSS rulesets. There are a few online tools as well.
Attachments (2)
Change History (14)
This ticket was mentioned in Slack in #core-media by joedolson. View the logs.
21 months ago
This ticket was mentioned in Slack in #core by nhrrob. View the logs.
18 months ago
#7
@
18 months ago
We have reviewed this ticket in today's bug scrub.
This one ready for testing.
Pinging Test Lead @annezazu (Feel free to share with the #core-test team)
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
18 months ago
#9
@
18 months ago
- Type changed from enhancement to defect (bug)
I'd consider duplicate CSS to be a bug. This doesn't enhance anything; just fixes a very minor code complexity and performance issue. Will test and mark for commit assuming it's all good.
60499.diff removes the duplicate CSS.