Make WordPress Core

Opened 12 years ago

Closed 7 years ago

#28972 closed enhancement (duplicate)

enhance make_clickable so that it allows for anchor attributes to be passed via an extra array argument.

Reported by: dwainm Owned by:
Priority: normal Milestone:
Component: Formatting Version: 3.9.1
Severity: normal Keywords:
Cc: Focuses: template

Description

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  ) ;

Change History (2)

#1 @dwainm
11 years ago

  • Keywords needs-patch added

#2 @pento
7 years ago

  • Keywords needs-patch removed
  • Resolutionduplicate
  • Status newclosed

Closing this as a duplicate of #32787, which has more discussion.

Note: See TracTickets for help on using tickets.