Support » Plugins » [Plugin: Rich Text Widget] WordPress MU and character escapes

  • First of all, great plugin.

    I am using this on a normal 2.8.4 wordpress installation with no issues what so ever. Some people suggested they had problems when they had more than one RT widget in a sidebar and I have not had this problem at all.

    I am however, having a problem with WordPress MU.

    The widget activates and lets me insert it in the sidebar. The problem is when I “save” my content.

    For some reason all the apostrophes and what not get escaped.

    Example: I insert an image and save. The image then turns into:
    <img class="\&quot;aligncenter" size-full="" wp-image-25\="" src="%5C%22" alt="\&quot;copcar\&quot;" height="\&quot;98\&quot;" width="\&quot;193\&quot;">

    This is my first time really using WordPress MU, so I’m guessing this is something WPMU specific.

    My next option is to go under the hood of the plugin and look around, but since I’m not familiar with WPMU I was hoping someone would have some insight first.


Viewing 1 replies (of 1 total)
  • Well a quick glance at the plugin file, rich-text-widget.php, and I was able to find the problem.

    Starting on line 124 it has:

    if ( current_user_can('unfiltered_html') )
    			$instance['text'] =  $new_instance['text'];
    			$instance['text'] = wp_filter_post_kses( $new_instance['text'] );
    		return $instance;

    I guess when I created my admin account for this particular blog I missed a setting some where to allow unfiltered HTML.

    For now I just commented that out and it works fine. Ideally I need to go into WPMU and give my administrator account for that blog the right permissions.

    //if ( current_user_can('unfiltered_html') )
    			$instance['text'] =  $new_instance['text'];
    		//	$instance['text'] = wp_filter_post_kses( $new_instance['text'] );
    		return $instance;


Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Rich Text Widget] WordPress MU and character escapes’ is closed to new replies.