[wpmu-trac] [WordPress MU Trac] #1067: Stripslashes needed on text widget

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Jul 27 00:56:39 UTC 2009


#1067: Stripslashes needed on text widget
----------------------------+-----------------------------------------------
 Reporter:  DeannaS         |        Owner:  somebody
     Type:  defect          |       Status:  new     
 Priority:  normal          |    Milestone:          
Component:  Administration  |      Version:  2.8.2   
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by jamescollins):

  * component:  component1 => Administration

Comment:

 I can confirm that this is a problem in both WPMU 2.8.2 and also the
 latest version from trunk (r1907).

 When any user (that isn't a site admin) adds/edits a text widget, extra
 slashes are being added to it.

 WPMU 2.8.2's wp-includes/default-widgets.php file is identical to WP
 2.8.2's wp-includes/default-widgets.php file, so the problem must be
 elsewhere.

 In [1784] stripslashes() was removed from the get_option() function call
 to make it behave like WP's get_option() function call.

 In WP, Administrators and Editors have the unfiltered_html capability. In
 WPMU, only site admins do.

 In http://core.trac.wordpress.org/changeset/10802, ryan removed the
 stripslashes() call from the text widget in WordPress. I think this is a
 bug in WP, but it doesn't actually cause any problems in WP because the
 users have the unfiltered_html capability.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1067#comment:3>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list