#42488 closed defect (bug) (fixed)
Link field in Image Widget does not report invalidity
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Widgets | Keywords: | has-patch has-screenshots dev-reviewed commit |
Focuses: | Cc: |
Description (last modified by )
Reported at https://wordpress.org/support/topic/widgets-displaying-saving/ by @newb1e:
under appearence > widgets I’ve noticed that if you put the image widget in a widget area and type in a link without http:// at the beginning, you can’t save the widget, but there is no notice what’s going on. Just nothing happens.
There should be some indication of an invalid URL.
This is regarding the link URL field which was added to the image widget in [41252] for #41274.
Attachments (4)
Change History (15)
#3
@
7 years ago
- Keywords has-patch has-screenshots added
42488.0.diff adds the same red border outline to the link URL field which is added when attempting to add an invalid URL for a Custom Link nav menu item.
See invalid.png and valid.png.
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
7 years ago
#11
@
7 years ago
Note that in the Customizer if a user supplies the value "example.com" then it will automatically get converted into "http://example.com" because the field will sync with the server's esc_url_raw()
sanitization logic.
At the very least we should style the URL field to indicate the invalidity as can be seen when supplying a bad URL when adding a Custom Link as a nav menu item. See add-custom-menu-item-invalid-url.png.