[wpmu-trac] Re: [WordPress MU Trac] #339: WPMU still needs 'unfiltered_html' capability present, just not assigned to users by default

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Sep 14 15:37:58 GMT 2007


#339: WPMU still needs 'unfiltered_html' capability present, just not assigned to
users by default
--------------------------+-------------------------------------------------
 Reporter:  JeremyVisser  |        Owner:  somebody
     Type:  defect        |       Status:  closed  
 Priority:  normal        |    Milestone:  WPMU 1.0
Component:  component1    |      Version:  1.0     
 Severity:  normal        |   Resolution:  wontfix 
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by mrjcleaver):

 http://trac.mu.wordpress.org/changeset/539/trunk/wp-inst/wp-content/mu-
 plugins/misc.php is how donncha originally took it out. That no longer
 works.

 I hacked kses.php:L571 to say:
 function wp_filter_post_kses($data) {
         global $allowedposttags;
         if ( current_user_can('level_8')) { //unfiltered_html') ) {
           return $data;
         } else {
           return addslashes ( wp_kses(stripslashes( $data ),
 $allowedposttags) \
 );
         }
 }

 This works, but is a hack.

 I asked on #wpmu and on #wordpress-dev channels but no one answered.

 In theory I'd be able to invert the 539 code but I've already wasted
 enough time just making it work that I have no incentive to now make it
 clean.

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


More information about the wpmu-trac mailing list