Black Studio TinyMCE Widget - Version 2.7.2

Version Description

(2022-07-05) = * Fixed compatibility issue with Toolset Types WYSIWYG fields

Download this release

Release Info

Developer marcochiesi
Plugin Icon 128x128 Black Studio TinyMCE Widget
Version 2.7.2
Comparing to
See all releases

Code changes from version 2.7.1 to 2.7.2

black-studio-tinymce-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: https://wordpress.org/plugins/black-studio-tinymce-widget/
5
  Description: Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor.
6
- Version: 2.7.1
7
  Author: Black Studio
8
  Author URI: https://www.blackstudio.it
9
  Requires at least: 3.1
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Plugin' ) ) {
35
  * @var string
36
  * @since 2.0.0
37
  */
38
- public static $version = '2.7.1';
39
 
40
  /**
41
  * The single instance of the plugin class
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: https://wordpress.org/plugins/black-studio-tinymce-widget/
5
  Description: Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor.
6
+ Version: 2.7.2
7
  Author: Black Studio
8
  Author URI: https://www.blackstudio.it
9
  Requires at least: 3.1
35
  * @var string
36
  * @since 2.0.0
37
  */
38
+ public static $version = '2.7.2';
39
 
40
  /**
41
  * The single instance of the plugin class
includes/class-admin.php CHANGED
@@ -222,7 +222,15 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Admin' ) ) {
222
  wp_enqueue_script( 'wpdialogs-popup' );
223
  $this->enqueue_script();
224
  $this->localize_script();
225
- do_action( 'wp_enqueue_editor', array( 'tinymce' => true ) );
 
 
 
 
 
 
 
 
226
  }
227
 
228
  /**
222
  wp_enqueue_script( 'wpdialogs-popup' );
223
  $this->enqueue_script();
224
  $this->localize_script();
225
+ if ( function_exists( 'wp_enqueue_editor' ) ) {
226
+ wp_enqueue_editor();
227
+ }
228
+ else {
229
+ do_action( 'wp_enqueue_editor', array(
230
+ 'tinymce' => true,
231
+ 'quicktags' => true,
232
+ ) );
233
+ }
234
  }
235
 
236
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: widget, visual, editor, wysiwyg, html, text, tinymce, image, media, galler
5
  Requires at least: 3.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.2
8
- Stable tag: 2.7.1
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl.html
11
 
@@ -213,6 +213,9 @@ DELETE FROM wp_usermeta WHERE meta_key LIKE '_bstw%';
213
 
214
  == Changelog ==
215
 
 
 
 
216
  = 2.7.1 (2022-07-01) =
217
  * Fixed issue on Media Library with new Block-based Widgets Editor
218
 
@@ -552,5 +555,5 @@ DELETE FROM wp_usermeta WHERE meta_key LIKE '_bstw%';
552
 
553
  == Upgrade Notice ==
554
 
555
- = 2.7.1 =
556
  Important: Always ensure to backup your database before upgrading.
5
  Requires at least: 3.1
6
  Tested up to: 6.0
7
  Requires PHP: 5.2
8
+ Stable tag: 2.7.2
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl.html
11
 
213
 
214
  == Changelog ==
215
 
216
+ = 2.7.2 (2022-07-05) =
217
+ * Fixed compatibility issue with Toolset Types WYSIWYG fields
218
+
219
  = 2.7.1 (2022-07-01) =
220
  * Fixed issue on Media Library with new Block-based Widgets Editor
221
 
555
 
556
  == Upgrade Notice ==
557
 
558
+ = 2.7.2 =
559
  Important: Always ensure to backup your database before upgrading.