[wp-trac] [WordPress Trac] #13971: "Wordpress" being turned into CamelCase "WordPress" breaks URLs

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 16 01:21:47 UTC 2010


#13971: "Wordpress" being turned into CamelCase "WordPress" breaks URLs
----------------------------------------+-----------------------------------
 Reporter:  tfotherby                   |        Owner:          
     Type:  defect (bug)                |       Status:  reopened
 Priority:  lowest                      |    Milestone:  3.0.1   
Component:  Formatting                  |      Version:  3.0     
 Severity:  major                       |   Resolution:          
 Keywords:  has-patch, needs reverting  |  
----------------------------------------+-----------------------------------

Comment(by wpmuguru):

 What about doing the space before & after as 2 separate strings?

 {{{
 $text = str_replace( array( 'Wordpress ', ' Wordpress' ), array(
 'WordPress ', ' WordPress' ), $text );
 }}}

 That would eliminate any links but catch 99.9% of the instances in text.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13971#comment:84>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list