[wp-trac] [WordPress Trac] #10563: Text widget adds extra slashes when edited by someone without the unfiltered_html capability

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 10 13:37:11 UTC 2009


#10563: Text widget adds extra slashes when edited by someone without the
unfiltered_html capability
--------------------------+-------------------------------------------------
 Reporter:  jamescollins  |        Owner:  azaozz  
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  2.9     
Component:  Widgets       |      Version:  2.8     
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:6 jamescollins]:
 > The change in WPMU has been running on our WPMU installs for a few weeks
 and it seems to have fixed the problem.

 try feeding it stuff with a backslash... the correct patch is to:

 stripslashes(wp_filter_post_kses(addslashes(...)))

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


More information about the wp-trac mailing list