Improvements
-
To improve functionality add filters for the content of the widgets. You can choose which you want. The ones below are whats typically applied to the_content();
On line 140 you have
echo $content;
This would be better suited like this.
echo apply_filters('wp_editor_widget',$content);
And then at the top with your actions add
add_filter( 'wp_editor_widget', 'wptexturize' ); add_filter( 'wp_editor_widget', 'convert_smilies' ); add_filter( 'wp_editor_widget', 'convert_chars' ); add_filter( 'wp_editor_widget', 'wpautop' ); add_filter( 'wp_editor_widget', 'shortcode_unautop' ); add_filter( 'wp_editor_widget', 'prepend_attachment' ); add_filter( 'wp_editor_widget', 'do_shortcode', 11 );
If you use this please credit me.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Improvements’ is closed to new replies.