[wp-trac] [WordPress Trac] #28972: enhance make_clickable so that it allows for anchor attributes to be passed via an extra array argument.

WordPress Trac noreply at wordpress.org
Mon Jul 21 07:47:09 UTC 2014


#28972: enhance make_clickable so that it allows for anchor attributes to be passed
via an extra array argument.
-------------------------+-----------------------------
 Reporter:  dwainm       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Formatting   |    Version:  3.9.1
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 When using make_clickable it is useful to pass in the extra anchor
 attributes to be included in the function call.

 One can call the function like this if you need to include anchor tag
 attributes

 {{{

 $attributes = array(
     'target' => '_blank',
     'class' => 'external',
 );

 make_clickable(  $text  , $attributes  ) ;
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28972>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list