Opened 8 years ago
Last modified 8 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Widgets | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@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_optioncall. 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.