[wp-trac] [WordPress Trac] #36096: Custom Logo: Use of custom image size requires unexpected filtering of image_size_names_choose
WordPress Trac
noreply at wordpress.org
Fri Mar 4 23:31:13 UTC 2016
#36096: Custom Logo: Use of custom image size requires unexpected filtering of
image_size_names_choose
--------------------------+--------------------
Reporter: westonruter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Comment (by westonruter):
It seems this problem wasn't faced by Jetpack because it included the
image `sizes` in the `site_logo` option:
https://github.com/Automattic/jetpack/blob/43c61c4377f427efa94f1e3e1ac754e419eca3e2/modules
/theme-tools/site-logo/inc/class-site-logo.php#L101
Now we're just storing the attachment ID and using whatever sizes are
available at runtime (which is a better approach than storing the sizes in
the DB with the attachment ID).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36096#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list