[wp-trac] [WordPress Trac] #41629: Widgets: Default to "custom URL" in the image widget
WordPress Trac
noreply at wordpress.org
Wed Sep 27 13:48:29 UTC 2017
#41629: Widgets: Default to "custom URL" in the image widget
-------------------------------------+-----------------------
Reporter: melchoyce | Owner: desrosj
Type: enhancement | Status: assigned
Priority: high | Milestone: 4.9
Component: Media | Version: 4.8
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui
-------------------------------------+-----------------------
Changes (by desrosj):
* keywords: has-patch => has-patch needs-testing
* version: => 4.8
Comment:
I tested @bor0's patch. This tackles the situation when editing widgets in
the admin, but not in the Customizer
[attachment:41629.2.patch] is an extension of that change that also
changes the behavior through the Customizer.
Previously, the default `image_default_link_type` option was not being
respected when selecting an image for an image widget in the Customizer.
[attachment:41629.2.patch] now respects the default option, but introduces
a new option specifically for the image widget,
`image_default_widget_link_type`. This will be `custom` when not present
in the database.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41629#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list