[wp-trac] [WordPress Trac] #23308: make_clickable problem with multiple "Punctuation URL character"

WordPress Trac noreply at wordpress.org
Mon Jan 28 15:10:00 UTC 2013


#23308: make_clickable problem with multiple "Punctuation URL character"
-----------------------------+--------------------------
 Reporter:  DrPepper75       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Formatting
  Version:  3.5.1            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 make_clickable problem with multiple "Punctuation URL character"

 E.g.
 {{{
 http://www.wordpress.org/some-(parentheses).html
 }}}
 Results in this html code:
 {{{
 <a href="http://www.wordpress.org/some-(parentheses)"
 rel="nofollow">http://www.wordpress.org/some-(parentheses)</a>.html
 }}}
 But obvious should be:
 {{{
 <a href="http://www.wordpress.org/some-(parentheses)"
 rel="nofollow">http://www.wordpress.org/some-(parentheses).html</a>
 }}}

 I suggest to replace:
 wp-includes/formatting.php:1603
 {{{
 [\'.,;:!?)]  # Punctuation URL character
 }}}
 with
 {{{
 [\'.,;:!?)]{1,}  # Punctuation URL character
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23308>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list