Black Studio TinyMCE Widget - Version 2.3.1

Version Description

(2016-11-18) = * Fix: Prevent unwanted translations for widget titles when WPML Widgets plugin is active

Download this release

Release Info

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

Code changes from version 2.3.0 to 2.3.1

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.3.0
7
Author: Black Studio
8
Author URI: http://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.3.0';
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.3.1
7
Author: Black Studio
8
Author URI: http://www.blackstudio.it
9
Requires at least: 3.1
35
* @var string
36
* @since 2.0.0
37
*/
38
+ public static $version = '2.3.1';
39
40
/**
41
* The single instance of the plugin class
includes/class-compatibility-plugins.php CHANGED
@@ -74,12 +74,31 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
74
* @since 2.0.0
75
*/
76
public function wpml() {
77
add_action( 'black_studio_tinymce_before_widget', array( $this, 'wpml_widget_before' ), 10, 2 );
78
add_action( 'black_studio_tinymce_after_widget', array( $this, 'wpml_widget_after' ), 10, 2 );
79
add_filter( 'black_studio_tinymce_widget_update', array( $this, 'wpml_widget_update' ), 10, 2 );
80
add_filter( 'widget_text', array( $this, 'wpml_widget_text' ), 2, 3 );
81
}
82
83
/**
84
* Disable WPML String translation native behavior
85
*
74
* @since 2.0.0
75
*/
76
public function wpml() {
77
+ add_action( 'init', array( $this, 'wpml_init' ) );
78
add_action( 'black_studio_tinymce_before_widget', array( $this, 'wpml_widget_before' ), 10, 2 );
79
add_action( 'black_studio_tinymce_after_widget', array( $this, 'wpml_widget_after' ), 10, 2 );
80
add_filter( 'black_studio_tinymce_widget_update', array( $this, 'wpml_widget_update' ), 10, 2 );
81
add_filter( 'widget_text', array( $this, 'wpml_widget_text' ), 2, 3 );
82
}
83
84
+ /**
85
+ * Initialize compatibility with WPML and WPML Widgets plugins
86
+ *
87
+ * @uses is_plugin_active()
88
+ * @uses has_action()
89
+ * @uses remove_action()
90
+ *
91
+ * @return void
92
+ * @since 2.3.1
93
+ */
94
+ public function wpml_init() {
95
+ if ( is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) && is_plugin_active( 'wpml-widgets/wpml-widgets.php' ) ) {
96
+ if ( false !== has_action( 'update_option_widget_black-studio-tinymce', 'icl_st_update_widget_title_actions' ) ) {
97
+ remove_action( 'update_option_widget_black-studio-tinymce', 'icl_st_update_widget_title_actions', 5 );
98
+ }
99
+ }
100
+ }
101
+
102
/**
103
* Disable WPML String translation native behavior
104
*
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: black-studio, marcochiesi, thedarkmist
3
Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce-widget/
4
Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
5
Requires at least: 3.1
6
- Tested up to: 4.6
7
- Stable tag: 2.3.0
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -181,6 +181,9 @@ Plugin's data is stored in serialized format inside a record in the `wp_options`
181
182
== Changelog ==
183
184
= 2.3.0 (2016-11-17) =
185
* Enhanced integration with WPML and Page Builder
186
* Added new action hooks (black_studio_tinymce_before_widget and black_studio_tinymce_after_widget)
@@ -453,5 +456,5 @@ Plugin's data is stored in serialized format inside a record in the `wp_options`
453
454
== Upgrade Notice ==
455
456
- = 2.3.0 =
457
Version 2.x is a major update. If you are upgrading from version 1.x please ensure to backup your database before upgrading.
3
Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce-widget/
4
Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
5
Requires at least: 3.1
6
+ Tested up to: 4.7
7
+ Stable tag: 2.3.1
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
181
182
== Changelog ==
183
184
+ = 2.3.1 (2016-11-18) =
185
+ * Fix: Prevent unwanted translations for widget titles when WPML Widgets plugin is active
186
+
187
= 2.3.0 (2016-11-17) =
188
* Enhanced integration with WPML and Page Builder
189
* Added new action hooks (black_studio_tinymce_before_widget and black_studio_tinymce_after_widget)
456
457
== Upgrade Notice ==
458
459
+ = 2.3.1 =
460
Version 2.x is a major update. If you are upgrading from version 1.x please ensure to backup your database before upgrading.