Changeset 26328
- Timestamp:
- 11/22/2013 04:24:25 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r26191 r26328 3244 3244 $_links_add_target = $target; 3245 3245 $tags = implode('|', (array)$tags); 3246 return preg_replace_callback( "!<($tags)( .+?)>!i", '_links_add_target', $content );3246 return preg_replace_callback( "!<($tags)([^>]*)>!i", '_links_add_target', $content ); 3247 3247 } 3248 3248 … … 3259 3259 global $_links_add_target; 3260 3260 $tag = $m[1]; 3261 $link = preg_replace('|( target=([\'"])(.*?)\2)|i', '', $m[2]);3261 $link = preg_replace('|( target=([\'"])(.*?)\2)|i', '', $m[2]); 3262 3262 return '<' . $tag . $link . ' target="' . esc_attr( $_links_add_target ) . '">'; 3263 3263 }
Note: See TracChangeset
for help on using the changeset viewer.