Return to Snippet

Revision: 10120
at December 9, 2008 11:16 by goo


Updated Code
//Cambiar en wp-includes/widgets.php

if ( !current_user_can(�unfiltered_html�) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

// por:

if ( !current_user_can(�edit_themes�) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

Revision: 10119
at December 9, 2008 11:15 by goo


Updated Code
//Cambiar en wp-includes/widgets.php

if ( !current_user_can(�unfiltered_html�) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

// por:

if ( !current_user_can(�edit_themes�) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

Revision: 10118
at December 9, 2008 02:35 by goo


Initial Code
//Cambiar en wp-includes/widgets.php

if ( !current_user_can(’unfiltered_html’) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

// por:

if ( !current_user_can(’edit_themes’) )
$newoptions[$number]['text'] = stripslashes(wp_filter_post_kses($newoptions[$number]['text']));

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

Initial Description

                                

Initial Title
WPMU - Can't insert SCRIPT in SIDEBAR WIDGETS

Initial Tags
wordpress

Initial Language
PHP