WP Editor Widget - Version 0.5.2

Version Description

  • Issue #27853 has been fixed in WP 3.9.1, this change makes sure that the fix from last version only is active on WP 3.9 and earlier
Download this release

Release Info

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

Code changes from version 0.5.1 to 0.5.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wp-editor-widget.php +6 -4
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: feedmeastraycat
3
  Tags: widget, wysiwyg, editor, rich text
4
  Requires at least: 3.5.1
5
  Tested up to: 3.9.0
6
- Stable tag: 0.5.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.
@@ -32,6 +32,9 @@ Feel free to help with developement or issue reporting on [Github](https://githu
32
 
33
  == Changelog ==
34
 
 
 
 
35
  = 0.5.1 =
36
  * Bugfix: Couldn't switch to plain text on customize.php ([Issue #27853](https://core.trac.wordpress.org/ticket/27853))
37
  * Bugfix: JS errors that could appear depending on if you loaded the editor in wysiwyg or plain text
3
  Tags: widget, wysiwyg, editor, rich text
4
  Requires at least: 3.5.1
5
  Tested up to: 3.9.0
6
+ Stable tag: 0.5.2
7
  License: MIT
8
 
9
  WP Editor Widget adds a rich text widget where the content is edited using the standard WordPress visual editor.
32
 
33
  == Changelog ==
34
 
35
+ = 0.5.2 =
36
+ * [Issue #27853](https://core.trac.wordpress.org/ticket/27853) has been fixed in WP 3.9.1, this change makes sure that the fix from last version only is active on WP 3.9 and earlier
37
+
38
  = 0.5.1 =
39
  * Bugfix: Couldn't switch to plain text on customize.php ([Issue #27853](https://core.trac.wordpress.org/ticket/27853))
40
  * Bugfix: JS errors that could appear depending on if you loaded the editor in wysiwyg or plain text
wp-editor-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Editor Widget
4
  Plugin URI: https://github.com/feedmeastraycat/wp-editor-widget
5
  Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
6
  Author: David Mårtensson, Odd Alice
7
- Version: 0.5.1
8
  Author URI: http://www.feedmeastraycat.net/
9
  Text Domain: wp-editor-widget
10
  Domain Path: /langs
@@ -27,7 +27,7 @@ class WPEditorWidget {
27
  /**
28
  * @var string
29
  */
30
- const VERSION = "0.5.1";
31
 
32
  /**
33
  * Action: init
@@ -106,8 +106,10 @@ class WPEditorWidget {
106
  */
107
  public function customize_controls_print_footer_scripts() {
108
 
109
- // Because of https://core.trac.wordpress.org/ticket/27853
110
- if ( class_exists( '_WP_Editors' ) ) {
 
 
111
  _WP_Editors::enqueue_scripts();
112
  }
113
 
4
  Plugin URI: https://github.com/feedmeastraycat/wp-editor-widget
5
  Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
6
  Author: David Mårtensson, Odd Alice
7
+ Version: 0.5.2
8
  Author URI: http://www.feedmeastraycat.net/
9
  Text Domain: wp-editor-widget
10
  Domain Path: /langs
27
  /**
28
  * @var string
29
  */
30
+ const VERSION = "0.5.2";
31
 
32
  /**
33
  * Action: init
106
  */
107
  public function customize_controls_print_footer_scripts() {
108
 
109
+ // Because of https://core.trac.wordpress.org/ticket/27853
110
+ // Which was fixed in 3.9.1 so we only need this on earlier versions
111
+ $wp_version = get_bloginfo( 'version' );
112
+ if ( version_compare( $wp_version, '3.9.1', '<' ) && class_exists( '_WP_Editors' ) ) {
113
  _WP_Editors::enqueue_scripts();
114
  }
115