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

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 8 18:47:19 UTC 2010


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

Comment(by dougal):

 I think I hurt my brain reworking my original code to use create_function
 instead of introducing an intermediate function globally. I'm not happy
 with how ugly that whole
 preg_replace_callback->create_function->call_user_func chain looks, but it
 works and it's generic enough for reuse elsewhere.

 With this, you can make filters which only affect 'CDATA' text, and which
 ignore any content within HTML elements and their attributes.There could
 be edge cases I'm not aware of, so if anybody wants to give it rigorous
 testing, I'd welcome feedback.

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


More information about the wp-trac mailing list