WP Editor Widget - Version 0.4.0

Version Description

  • Added standard WP functions wptexturize, convert_smilies, convert_chars, wpautop, shortcode_unautop, prepend_attachment, do_shortcode to the wp_editor_widget_content filter (thanks danieliser on WordPress.org http://profiles.wordpress.org/danieliser/)
Download this release

Release Info

Developer feedmeastraycat
Plugin Icon wp plugin WP Editor Widget
Version 0.4.0
Comparing to
See all releases

Code changes from version 0.3.1 to 0.4.0

Files changed (2) hide show
  1. readme.txt +5 -2
  2. wp-editor-widget.php +10 -2
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: feedmeastraycat
3
  Tags: widget, wysiwyg, editor, rich text
4
  Requires at least: 3.5.1
5
- Tested up to: 3.6
6
- Stable tag: 0.3.1
7
  License: MIT
8
 
9
  WP Editor Widget adds a rich text widget where the content is edited using the standard WordPress visual editor.
@@ -30,6 +30,9 @@ It uses the WP core function wp_editor() without adding a custom post type post
30
 
31
  == Changelog ==
32
 
 
 
 
33
  = 0.3.1 =
34
  * Updated the Swedish translation
35
  * Moved load_plugin_textdomain() for translation to the plugins_loaded action to make sure the widget is correctly translated.
2
  Contributors: feedmeastraycat
3
  Tags: widget, wysiwyg, editor, rich text
4
  Requires at least: 3.5.1
5
+ Tested up to: 3.8
6
+ Stable tag: 0.4.0
7
  License: MIT
8
 
9
  WP Editor Widget adds a rich text widget where the content is edited using the standard WordPress visual editor.
30
 
31
  == Changelog ==
32
 
33
+ = 0.4.0 =
34
+ * Added standard WP functions wptexturize, convert_smilies, convert_chars, wpautop, shortcode_unautop, prepend_attachment, do_shortcode to the wp_editor_widget_content filter (thanks danieliser on WordPress.org http://profiles.wordpress.org/danieliser/)
35
+
36
  = 0.3.1 =
37
  * Updated the Swedish translation
38
  * Moved load_plugin_textdomain() for translation to the plugins_loaded action to make sure the widget is correctly translated.
wp-editor-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Editor Widget
4
  Plugin URI: http://oddalice.com/
5
  Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
6
  Author: David Mårtensson, Odd Alice
7
- Version: 0.3.1
8
  Author URI: http://www.feedmeastraycat.net/
9
  */
10
 
@@ -16,6 +16,14 @@ add_action('admin_init', array('WPEditorWidget', 'admin_init'));
16
  add_action('plugins_loaded', array('WPEditorWidget', 'plugins_loaded'));
17
  add_action('widgets_admin_page', array('WPEditorWidget', 'widgets_admin_page'), 100);
18
  add_action('widgets_init', array('WPEditorWidget', 'widgets_init'));
 
 
 
 
 
 
 
 
19
 
20
 
21
 
@@ -28,7 +36,7 @@ class WPEditorWidget
28
  /**
29
  * @var string
30
  */
31
- const VERSION = "0.3.1";
32
 
33
  /**
34
  * @var string
4
  Plugin URI: http://oddalice.com/
5
  Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
6
  Author: David Mårtensson, Odd Alice
7
+ Version: 0.4.0
8
  Author URI: http://www.feedmeastraycat.net/
9
  */
10
 
16
  add_action('plugins_loaded', array('WPEditorWidget', 'plugins_loaded'));
17
  add_action('widgets_admin_page', array('WPEditorWidget', 'widgets_admin_page'), 100);
18
  add_action('widgets_init', array('WPEditorWidget', 'widgets_init'));
19
+ // Setup filters
20
+ add_filter('wp_editor_widget_content', 'wptexturize');
21
+ add_filter('wp_editor_widget_content', 'convert_smilies');
22
+ add_filter('wp_editor_widget_content', 'convert_chars');
23
+ add_filter('wp_editor_widget_content', 'wpautop');
24
+ add_filter('wp_editor_widget_content', 'shortcode_unautop');
25
+ add_filter('wp_editor_widget_content', 'prepend_attachment');
26
+ add_filter('wp_editor_widget_content', 'do_shortcode', 11);
27
 
28
 
29
 
36
  /**
37
  * @var string
38
  */
39
+ const VERSION = "0.4.0";
40
 
41
  /**
42
  * @var string