[wpmu-trac] [WordPress MU Trac] #910: Change to wp-includes/widgets.php

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Feb 19 21:24:02 GMT 2009


#910: Change to wp-includes/widgets.php
-------------------------+--------------------------------------------------
 Reporter:  frumph       |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  low          |   Milestone:  2.7.1   
Component:  General      |     Version:  2.7.1   
 Severity:  trivial      |    Keywords:          
-------------------------+--------------------------------------------------
 wp-includes/widgets.php line 1003:

 old:
                         if ( current_user_can('unfiltered_html') )
 New:
                         if ( current_user_can('unfiltered_textwidget') )


 This is so there is a seperation of unfiltered_html in posts and
 unfiltered_html in text widgets. allowing for

 $role = get_role('administrator');
 $role->add_cap('unfiltered_textwidget');

 in my mu-plugins/custom.php giving users access to putting unfiltered html
 in the text widget but not in the comments etc

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/910>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list