[wp-trac] [WordPress Trac] #45083: use `image_default_size` option in WP_Widget_Media_Image instead of hard-coded value (was: use `image_default_size` option in WP_Widget_Media_Image)
WordPress Trac
noreply at wordpress.org
Fri Jan 4 15:36:16 UTC 2019
#45083: use `image_default_size` option in WP_Widget_Media_Image instead of hard-
coded value
-------------------------+-----------------------------
Reporter: Toro_Unit | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by welcher):
* type: defect (bug) => enhancement
* milestone: Awaiting Review => Future Release
Comment:
@Toro_Unit thanks for the ticket and the patch!
This looks good to me.
I am wondering if we may want to consider adding a filter the return of
the `get_option` call. This will allow users to change the default value
of this widget without affecting the default size of other media
throughout the site.
Patch updated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45083#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list