Black Studio TinyMCE Widget - Version 1.4.7

Version Description

  • Fixed bug on image captions on WordPress 4.0
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.7

Files changed (2) hide show
  1. black-studio-tinymce-widget.php +7 -7
  2. readme.txt +4 -1
black-studio-tinymce-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
5
  Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
6
- Version: 1.4.6
7
  Author: Black Studio
8
  Author URI: http://www.blackstudio.it
9
  License: GPLv3
@@ -110,9 +110,11 @@ class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
110
 
111
  /* Get plugin version */
112
  function black_studio_tinymce_get_version() {
113
- $plugin_data = get_plugin_data( __FILE__ );
114
- $plugin_version = $plugin_data['Version'];
115
- return $plugin_version;
 
 
116
  }
117
 
118
  /* Load localization */
@@ -192,8 +194,6 @@ function black_studio_tinymce_init_editor( $initArray ) {
192
  $initArray['remove_redundant_brs'] = false;
193
  // Force p block
194
  $initArray['forced_root_block'] = 'p';
195
- // Apply source formatting
196
- $initArray['apply_source_formatting '] = true;
197
  // Add proper newlines to source (i.e. around divs)
198
  $initArray['indent '] = true;
199
  // Return modified settings
@@ -295,7 +295,7 @@ function black_studio_tinymce_editor_accessibility_mode($editor) {
295
  /* Hack for compatibility with Page Builder + WPML String Translation */
296
  add_filter( 'siteorigin_panels_widget_object', 'black_studio_tinymce_siteorigin_panels_widget_object', 10, 2 );
297
  function black_studio_tinymce_siteorigin_panels_widget_object( $the_widget, $widget ) {
298
- if ( $the_widget->id_base == 'black-studio-tinymce' ) {
299
  $the_widget->number = '';
300
  }
301
  return $the_widget;
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
5
  Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
6
+ Version: 1.4.7
7
  Author: Black Studio
8
  Author URI: http://www.blackstudio.it
9
  License: GPLv3
110
 
111
  /* Get plugin version */
112
  function black_studio_tinymce_get_version() {
113
+ if ( ! function_exists( 'get_plugins' ) )
114
+ require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
115
+ $plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) );
116
+ $plugin_file = basename( ( __FILE__ ) );
117
+ return $plugin_folder[$plugin_file]['Version'];
118
  }
119
 
120
  /* Load localization */
194
  $initArray['remove_redundant_brs'] = false;
195
  // Force p block
196
  $initArray['forced_root_block'] = 'p';
 
 
197
  // Add proper newlines to source (i.e. around divs)
198
  $initArray['indent '] = true;
199
  // Return modified settings
295
  /* Hack for compatibility with Page Builder + WPML String Translation */
296
  add_filter( 'siteorigin_panels_widget_object', 'black_studio_tinymce_siteorigin_panels_widget_object', 10, 2 );
297
  function black_studio_tinymce_siteorigin_panels_widget_object( $the_widget, $widget ) {
298
+ if ( isset($the_widget->id_base) && $the_widget->id_base == 'black-studio-tinymce' ) {
299
  $the_widget->number = '';
300
  }
301
  return $the_widget;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce
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.0
6
  Tested up to: 4.0
7
- Stable tag: 1.4.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -111,6 +111,9 @@ add_filter( 'black_studio_tinymce_after_text', '__return_empty_string' );
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.4.6 =
115
  * Bugfix on widget display
116
 
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.0
6
  Tested up to: 4.0
7
+ Stable tag: 1.4.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.4.7 =
115
+ * Fixed bug on image captions on WordPress 4.0
116
+
117
  = 1.4.6 =
118
  * Bugfix on widget display
119