[wp-trac] [WordPress Trac] #31517: Customizer: show a notice after attempting to navigate to external links in live previews
WordPress Trac
noreply at wordpress.org
Tue Mar 3 19:51:57 UTC 2015
#31517: Customizer: show a notice after attempting to navigate to external links in
live previews
----------------------------+-----------------------------
Reporter: designsimply | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Keywords:
Focuses: ui, javascript |
----------------------------+-----------------------------
The Customizer only allows you to click internal, front-end links within a
preview to navigate to URLs you can customize:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/js/customize-
controls.js#L2110
Clicking on an external link from the live preview pane fails silently. To
help avoid confusion, we could display a notice to alert when someone
clicks on an external link in a live preview:
> ⚠ You can only preview internal, front-end links in the customizer.
Here is a past description of how a customizer notice could work from
@westonruter: https://core.trac.wordpress.org/ticket/30677#comment:7
(different use case, but the part about how the alert might work is
relevant)
#29098 provides a general mechanism for sending back error codes/messages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31517>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list