TinyMCE Advanced - Version 4.0.1

Version Description

Fix warnings on pages other than Edit Post. Update the description.

Download this release

Release Info

Developer azaozz
Plugin Icon 128x128 TinyMCE Advanced
Version 4.0.1
Comparing to
See all releases

Code changes from version 4.0 to 4.0.1

Files changed (2) hide show
  1. readme.txt +4 -8
  2. tinymce-advanced.php +17 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: wysiwyg, formatting, tinymce, write, editor
4
  License: GPL v2
5
  Requires at least: 3.9
6
  Tested up to: 3.9
7
- Stable tag: 4.0
8
 
9
  Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
10
 
@@ -23,19 +23,15 @@ It includes 14 plugins for [TinyMCE](http://tinymce.com/) that are automatically
23
 
24
  With this plugin you will also be able to enable the TinyMCE menu. It is a convenient way to access a lot of features that are not used frequently.
25
 
26
- = Language Support =
27
-
28
- The plugin includes several translations for the TinyMCE components: German, French, Italian, Spanish, Portuguese, Russian, Chinese and Japanese.
29
-
30
- More translations are available as a separate plugin: [TinyMCE Advanced Language Pack](http://wordpress.org/plugins/tinymce-advanced-language-pack/).
31
-
32
-
33
  == Installation ==
34
 
35
  Best is to install directly from WordPress. If manual installation is required, please make sure that the plugin files are in a folder named "tinymce-advanced" (not two nested folders) in the WordPress plugins folder, usually "wp-content/plugins".
36
 
37
  == Changelog ==
38
 
 
 
 
39
  = 4.0 =
40
  Updated for WordPress 3.9 and TinyMCE 4.0. Refreshed the settings screen. Added support for exporting and importing of the settings.
41
 
4
  License: GPL v2
5
  Requires at least: 3.9
6
  Tested up to: 3.9
7
+ Stable tag: 4.0.1
8
 
9
  Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor.
10
 
23
 
24
  With this plugin you will also be able to enable the TinyMCE menu. It is a convenient way to access a lot of features that are not used frequently.
25
 
 
 
 
 
 
 
 
26
  == Installation ==
27
 
28
  Best is to install directly from WordPress. If manual installation is required, please make sure that the plugin files are in a folder named "tinymce-advanced" (not two nested folders) in the WordPress plugins folder, usually "wp-content/plugins".
29
 
30
  == Changelog ==
31
 
32
+ = 4.0.1 =
33
+ Fix warnings on pages other than Edit Post. Update the description.
34
+
35
  = 4.0 =
36
  Updated for WordPress 3.9 and TinyMCE 4.0. Refreshed the settings screen. Added support for exporting and importing of the settings.
37
 
tinymce-advanced.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: TinyMCE Advanced
4
  Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
5
  Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
6
- Version: 4.0
7
  Author: Andrew Ozz
8
  Author URI: http://www.laptoptips.ca/
9
 
@@ -302,6 +302,10 @@ class Tinymce_Advanced {
302
  }
303
 
304
  function mce_buttons_1($orig) {
 
 
 
 
305
  $buttons_1 = $this->toolbar_1;
306
 
307
  if ( is_array($orig) && ! empty($orig) ) {
@@ -313,6 +317,10 @@ class Tinymce_Advanced {
313
  }
314
 
315
  function mce_buttons_2($orig) {
 
 
 
 
316
  $buttons_2 = $this->toolbar_2;
317
 
318
  if ( is_array($orig) && ! empty($orig) ) {
@@ -324,6 +332,10 @@ class Tinymce_Advanced {
324
  }
325
 
326
  function mce_buttons_3($orig) {
 
 
 
 
327
  $buttons_3 = $this->toolbar_3;
328
 
329
  if ( is_array($orig) && ! empty($orig) ) {
@@ -335,6 +347,10 @@ class Tinymce_Advanced {
335
  }
336
 
337
  function mce_buttons_4($orig) {
 
 
 
 
338
  $buttons_4 = $this->toolbar_4;
339
 
340
  if ( is_array($orig) && ! empty($orig) ) {
3
  Plugin Name: TinyMCE Advanced
4
  Plugin URI: http://www.laptoptips.ca/projects/tinymce-advanced/
5
  Description: Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
6
+ Version: 4.0.1
7
  Author: Andrew Ozz
8
  Author URI: http://www.laptoptips.ca/
9
 
302
  }
303
 
304
  function mce_buttons_1($orig) {
305
+ if ( ! is_array( $this->options ) ) {
306
+ $this->load_settings();
307
+ }
308
+
309
  $buttons_1 = $this->toolbar_1;
310
 
311
  if ( is_array($orig) && ! empty($orig) ) {
317
  }
318
 
319
  function mce_buttons_2($orig) {
320
+ if ( ! is_array( $this->options ) ) {
321
+ $this->load_settings();
322
+ }
323
+
324
  $buttons_2 = $this->toolbar_2;
325
 
326
  if ( is_array($orig) && ! empty($orig) ) {
332
  }
333
 
334
  function mce_buttons_3($orig) {
335
+ if ( ! is_array( $this->options ) ) {
336
+ $this->load_settings();
337
+ }
338
+
339
  $buttons_3 = $this->toolbar_3;
340
 
341
  if ( is_array($orig) && ! empty($orig) ) {
347
  }
348
 
349
  function mce_buttons_4($orig) {
350
+ if ( ! is_array( $this->options ) ) {
351
+ $this->load_settings();
352
+ }
353
+
354
  $buttons_4 = $this->toolbar_4;
355
 
356
  if ( is_array($orig) && ! empty($orig) ) {