Posted By

goo on 12/09/08


Tagged

wordpress widgets mu


Versions (?)

WPMU - Can't insert SCRIPT in SIDEBAR WIDGETS


 / Published in: PHP
 

URL: http://www.thainy.com/2007/05/how-to-use-html-tag-and-script-in-wpmu-text-widget/

  1. //Cambiar en wp-includes/widgets.php
  2.  
  3. if ( !current_user_can(�unfiltered_html�) )
  4. $newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));
  5.  
  6. // por:
  7.  
  8. if ( !current_user_can(�edit_themes�) )
  9. $newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

Report this snippet  

You need to login to post a comment.