[wp-trac] [WordPress Trac] #48194: Unregistered image sizes used for IMG tag "srcset"
WordPress Trac
noreply at wordpress.org
Thu Jan 9 14:29:54 UTC 2020
#48194: Unregistered image sizes used for IMG tag "srcset"
--------------------------+------------------------------
Reporter: galbaras | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by joemcgill):
Hi @galbaras. Thanks for reporting this issue.
WordPress makes an assumption that if an image size is present in
attachment metadata, then the file is available to be served to user
requests and can be included in `srcset` attributes. The best way to clean
up unused image sizes from the database is to regenerate thumbnails after
changing themes. You can use a plugin like https://wordpress.org/plugins
/regenerate-thumbnails/ or the `wp media regenerate` WP-CLI command.
Does that help?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48194#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list