Opened 6 years ago
Last modified 6 years ago
#45083 new enhancement
use `image_default_size` option in WP_Widget_Media_Image instead of hard-coded value
Reported by: | Toro_Unit | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | Cc: |
Description
default image size in WP_Widget_Media_Image is 'medium'.
Should be used get_option( 'image_default_size', 'medium' )
Attachments (2)
Change History (3)
Note: See
TracTickets for help on using
tickets.
@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.