Shortcake (Shortcode UI) - Version 0.2.2

Version Description

(April 6, 2015) = * Update arguments passed to TinyMCE View Render for WP 4.2 compatibility. Previously passed argument wasn't necessary, so removing doesn't break backwards compatibility.

Download this release

Release Info

Developer danielbachhuber
Plugin Icon 128x128 Shortcake (Shortcode UI)
Version 0.2.2
Comparing to
See all releases

Code changes from version 0.2.1 to 0.2.2

inc/class-shortcode-ui.php CHANGED
@@ -20,7 +20,7 @@ class Shortcode_UI {
20
 
21
  function __construct() {
22
 
23
- $this->plugin_version = '0.1';
24
  $this->plugin_dir = plugin_dir_path( dirname( __FILE__ ) );
25
  $this->plugin_url = plugin_dir_url( dirname( __FILE__ ) );
26
 
20
 
21
  function __construct() {
22
 
23
+ $this->plugin_version = SHORTCODE_UI_VERSION;
24
  $this->plugin_dir = plugin_dir_path( dirname( __FILE__ ) );
25
  $this->plugin_url = plugin_dir_url( dirname( __FILE__ ) );
26
 
js/build/shortcode-ui.js CHANGED
@@ -339,7 +339,7 @@ var shortcodeViewConstructor = {
339
  self.content = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
340
  } ).always( function() {
341
  delete self.fetching;
342
- self.render( true );
343
  } );
344
 
345
  }
@@ -494,11 +494,11 @@ var shortcodeViewConstructor = {
494
  self.setIframes( self.getEditorStyles(), response );
495
  } else {
496
  self.parsed = response;
497
- self.render( true );
498
  }
499
  }).fail( function() {
500
  self.parsed = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
501
- self.render( true );
502
  } );
503
 
504
  }
339
  self.content = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
340
  } ).always( function() {
341
  delete self.fetching;
342
+ self.render();
343
  } );
344
 
345
  }
494
  self.setIframes( self.getEditorStyles(), response );
495
  } else {
496
  self.parsed = response;
497
+ self.render();
498
  }
499
  }).fail( function() {
500
  self.parsed = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
501
+ self.render();
502
  } );
503
 
504
  }
js/utils/shortcode-view-constructor.js CHANGED
@@ -85,7 +85,7 @@ var shortcodeViewConstructor = {
85
  self.content = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
86
  } ).always( function() {
87
  delete self.fetching;
88
- self.render( true );
89
  } );
90
 
91
  }
@@ -240,11 +240,11 @@ var shortcodeViewConstructor = {
240
  self.setIframes( self.getEditorStyles(), response );
241
  } else {
242
  self.parsed = response;
243
- self.render( true );
244
  }
245
  }).fail( function() {
246
  self.parsed = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
247
- self.render( true );
248
  } );
249
 
250
  }
85
  self.content = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
86
  } ).always( function() {
87
  delete self.fetching;
88
+ self.render();
89
  } );
90
 
91
  }
240
  self.setIframes( self.getEditorStyles(), response );
241
  } else {
242
  self.parsed = response;
243
+ self.render();
244
  }
245
  }).fail( function() {
246
  self.parsed = '<span class="shortcake-error">' + shortcodeUIData.strings.mce_view_error + '</span>';
247
+ self.render();
248
  } );
249
 
250
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mattheu, danielbachhuber, jitendraharpalani, sanchothefat, bfintal
3
  Tags: shortcodes
4
  Requires at least: 4.1
5
  Tested up to: 4.2
6
- Stable tag: 0.2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -28,6 +28,9 @@ Shortcake can be installed like any other WordPress plugin. Once you've done so,
28
 
29
  == Changelog ==
30
 
 
 
 
31
  = 0.2.1 (March 18, 2015) =
32
 
33
  * Ensure use of jQuery respects jQuery.noConflict() mode in WP.
3
  Tags: shortcodes
4
  Requires at least: 4.1
5
  Tested up to: 4.2
6
+ Stable tag: 0.2.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
28
 
29
  == Changelog ==
30
 
31
+ = 0.2.2 (April 6, 2015) =
32
+ * Update arguments passed to TinyMCE View Render for WP 4.2 compatibility. Previously passed argument wasn't necessary, so removing doesn't break backwards compatibility.
33
+
34
  = 0.2.1 (March 18, 2015) =
35
 
36
  * Ensure use of jQuery respects jQuery.noConflict() mode in WP.
shortcode-ui.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Shortcode UI
4
- * Version: v0.2.1
5
  * Description: User Interface for adding shortcodes.
6
  * Author: Fusion Engineering and community
7
  * Author URI: http://next.fusion.net/tag/shortcode-ui/
@@ -19,6 +19,8 @@
19
  * GNU General Public License for more details.
20
  */
21
 
 
 
22
  require_once dirname( __FILE__ ) . '/inc/class-shortcode-ui.php';
23
  require_once dirname( __FILE__ ) . '/inc/fields/class-shortcode-ui-fields.php';
24
  require_once dirname( __FILE__ ) . '/inc/fields/class-field-attachment.php';
1
  <?php
2
  /**
3
  * Plugin Name: Shortcode UI
4
+ * Version: v0.2.2
5
  * Description: User Interface for adding shortcodes.
6
  * Author: Fusion Engineering and community
7
  * Author URI: http://next.fusion.net/tag/shortcode-ui/
19
  * GNU General Public License for more details.
20
  */
21
 
22
+ define( 'SHORTCODE_UI_VERSION', '0.2.2' );
23
+
24
  require_once dirname( __FILE__ ) . '/inc/class-shortcode-ui.php';
25
  require_once dirname( __FILE__ ) . '/inc/fields/class-shortcode-ui-fields.php';
26
  require_once dirname( __FILE__ ) . '/inc/fields/class-field-attachment.php';