[wp-trac] [WordPress Trac] #18149: Enhance "Insert/edit link" to predict user's intent

WordPress Trac noreply at wordpress.org
Sun Aug 25 06:25:15 UTC 2013


#18149: Enhance "Insert/edit link" to predict user's intent
-------------------------+------------------------------
 Reporter:  itsalltech1  |       Owner:  azaozz
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  3.1
 Severity:  minor        |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------

Comment (by avryl):

 I think the chances that somebody needs a relative url are extremely low
 as well. I actually don't see any reason why anyone would use these. The
 chances of somebody accidentally submitting a relative url are much
 higher.

 I'd use something like `'^(' + allowedprotocols.join('|') + '):|^#'` and
 if it doesn't match show a warning or automatically add `http://`. What
 about `//`? :)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/18149#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list