[wp-trac] [WordPress Trac] #32992: Allow make_clickable() to add target="_blank"

WordPress Trac noreply at wordpress.org
Wed Jul 15 08:08:48 UTC 2015


#32992: Allow make_clickable() to add target="_blank"
---------------------------+--------------------------------
 Reporter:  nicolamustone  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Formatting     |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  ui, accessibility
---------------------------+--------------------------------

Comment (by Daniel Koskinen):

 @nicolamustone: I'm jumping in with my own thoughts here. Regarding your
 example, perhaps in your case it would be fine, but my understanding is
 that `make_clickable` is usually meant to be applied to blocks of
 arbitrary text where you do not necessarily know what the URL or URL's'
 are beforehand (or even if there are any URL's at all, because they're
 coming from user-inputted content). They might be even links within the
 current site.

 If you have a variable containing only a URL, I would suggest simply
 wrapping it in HTML yourself.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32992#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list