[wp-trac] [WordPress Trac] #60499: Duplicate CSS in src/wp-includes/css/media-views.css
WordPress Trac
noreply at wordpress.org
Mon Feb 12 11:33:04 UTC 2024
#60499: Duplicate CSS in src/wp-includes/css/media-views.css
-------------------------+-----------------------------
Reporter: afercia | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: css |
-------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60499>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list