[wp-trac] [WordPress Trac] #32711: Customizer Menus: link items should have view links also
WordPress Trac
noreply at wordpress.org
Fri Jun 19 06:43:05 UTC 2015
#32711: Customizer Menus: link items should have view links also
--------------------------+-----------------------------
Reporter: designsimply | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript
--------------------------+-----------------------------
Changes (by celloexpressions):
* keywords: => has-patch
* focuses: => ui, javascript
* version: => trunk
* milestone: Awaiting Review => 4.3
Comment:
This is pretty straightforward - we can just let the link open normally
(in a new tab, out of necessity) if it isn't previewable. The only thing
I'm having trouble with in the patch is that ideally we could get back the
result of the attempt to preview this URL here and use it as a conditional
for calling e.preventDefault(). Not sure what the best way to do this is,
anyone have thoughts?
Should also probably add live-updating of the URL here when the URL field
is changed (not that it would be frequently). Having a preview link is
actually pretty important - this functionality is typically present in
other places where you add a link by URL so that you can check it before
publishing. We can't assume that users know how to open links in new tabs
themselves, or that they know they can do that in the Customizer preview
if a link isn't working.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32711#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list