#41274 closed defect (bug) (fixed)
Improve discoverability of link URL in Image widget.
Reported by: | stefanimhoff | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | has-patch commit has-screenshots |
Focuses: | Cc: |
Description
Hi,
I want to use the new Image-Widget from WordPress 4.8. I define a Link on the Image, but after safing every spacial character like .:/?# are striped from the URL.
The a href is also not inserted in the DOM around the Image nor Title.
Do you need further information?
Best Regards,
Stefan
Attachments (4)
Change History (23)
#2
@
7 years ago
@westonruter One excample is http://www.ecocamping.net/
#3
@
7 years ago
@stefanimhoff I think you may be entering the URL in the incorrect field. See image-url-field.png.
#4
@
7 years ago
- Keywords reporter-feedback removed
- Resolution set to invalid
- Status changed from new to closed
Ohh, sorry. Seems to be a typical layer 8 Problem...
Thank yoe very much!
Best Regards, Stefan
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
7 years ago
#7
@
7 years ago
@stefanimhoff we are exploring some approaches to make the linking of images in the widget a bit more discoverable. If you have time I would love to have some feedback on the following designs being considered:
https://cloudup.com/cTX3XurZQBJ
The code to implement the third option is here if you are interested in testing it out: https://github.com/xwp/wordpress-develop/pull/243
#8
@
7 years ago
- Milestone set to 4.9
- Resolution invalid deleted
- Status changed from closed to reopened
We can use this ticket for improving the usability.
#9
@
7 years ago
It is a great idea improving the usability.
@timmydcrawford I personally prefer the fourth solution, because most time I want to set more options (Relationships and open in a new window...). I don't know, if I would use third proposal very often, because of the additional options...
In the end linking Images will be standard-stuff: Web is meant to be linked ;)
#10
@
7 years ago
- Keywords has-patch added
- Owner set to timmydcrawford
- Status changed from reopened to reviewing
@timmydcrawford please add commit
once you've confirmed 41274.0.diff.
#11
@
7 years ago
- Summary changed from Links in Image Widget not working in WordPress 4.8 to Improve discoverability of link URL in Image widget.
#12
@
7 years ago
41274.1.diff applies cleanly for me and tests out well. I think this is ready to land.
@stefanimhoff what tis the full value you are supplying in the URL field? Note that it expects an actual URL, so beginning with
http://
orhttps://
. It usesesc_url_raw()
to sanitize the URL.