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

WordPress Trac noreply at wordpress.org
Wed Jul 15 06:20:24 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 nicolamustone):

 Not sure why you say that i'm applying it globally.

 Let me do an example of where/when i would use it.

 I have a given file URL, escaped and all. In this case, i would open the
 URL in a new tab.

 make_clickable( $file_url, true );

 If instead i have a post URL, i'd not open it in a new tab, so i would

 make_clickable( $post_url );

 If i have these 2 line of codes on the same page, they won't open both in
 a new tab, but only the first one, right?

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

More information about the wp-trac mailing list