Version Description
(November 9, 2015) = * Fixes JavaScript TypeError when clicking media frame menu items. * Corrects links in readme.
Download this release
Release Info
Developer | danielbachhuber |
Plugin | Shortcake (Shortcode UI) |
Version | 0.6.1 |
Comparing to | |
See all releases |
Code changes from version 0.6.0 to 0.6.1
- js/build/shortcode-ui.js +1 -1
- js/src/views/media-frame.js +1 -1
- readme.txt +9 -5
- shortcode-ui.php +2 -2
js/build/shortcode-ui.js
CHANGED
@@ -1605,7 +1605,7 @@ var mediaFrame = postMediaFrame.extend( {
|
|
1605 |
},
|
1606 |
|
1607 |
resetMediaController: function( event ) {
|
1608 |
-
if ( this.state() && this.state().props.get('currentShortcode') ) {
|
1609 |
this.mediaController.reset();
|
1610 |
this.contentRender( 'shortcode-ui', 'insert' );
|
1611 |
}
|
1605 |
},
|
1606 |
|
1607 |
resetMediaController: function( event ) {
|
1608 |
+
if ( this.state() && 'undefined' !== typeof this.state().props && this.state().props.get('currentShortcode') ) {
|
1609 |
this.mediaController.reset();
|
1610 |
this.contentRender( 'shortcode-ui', 'insert' );
|
1611 |
}
|
js/src/views/media-frame.js
CHANGED
@@ -52,7 +52,7 @@ var mediaFrame = postMediaFrame.extend( {
|
|
52 |
},
|
53 |
|
54 |
resetMediaController: function( event ) {
|
55 |
-
if ( this.state() && this.state().props.get('currentShortcode') ) {
|
56 |
this.mediaController.reset();
|
57 |
this.contentRender( 'shortcode-ui', 'insert' );
|
58 |
}
|
52 |
},
|
53 |
|
54 |
resetMediaController: function( event ) {
|
55 |
+
if ( this.state() && 'undefined' !== typeof this.state().props && this.state().props.get('currentShortcode') ) {
|
56 |
this.mediaController.reset();
|
57 |
this.contentRender( 'shortcode-ui', 'insert' );
|
58 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapple
|
|
3 |
Tags: shortcodes
|
4 |
Requires at least: 4.1
|
5 |
Tested up to: 4.4
|
6 |
-
Stable tag: 0.6.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -13,17 +13,17 @@ Shortcake makes using WordPress shortcodes a piece of cake.
|
|
13 |
|
14 |
Used alongside `add_shortcode`, Shortcake supplies a user-friendly interface for adding a shortcode to a post, and viewing and editing it from within the content editor.
|
15 |
|
16 |
-
Once you've installed the plugin, you'll need to [register UI for your shortcodes](https://github.com/wp-shortcake/shortcake/wiki/Registering-Shortcode-UI). For inspiration, check out [examples of Shortcake in the wild](https://github.com/wp-
|
17 |
|
18 |
-
To report bugs or feature requests, [please use Github issues](https://github.com/wp-
|
19 |
|
20 |
== Installation ==
|
21 |
|
22 |
Shortcake can be installed like any other WordPress plugin.
|
23 |
|
24 |
-
Once you've done so, you'll need to [register the UI for your code](https://github.com/wp-
|
25 |
|
26 |
-
New in 0.4.0 is the ability to [attach javascript functions to event attribute updates](https://github.com/wp-
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
@@ -51,6 +51,10 @@ We've removed the compatibility shim for the magical `content` attribute. If you
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
54 |
= 0.6.0 (November 2, 2015) =
|
55 |
* Supports an optional `encode=true` argument for attributes, to allow limited HTML support. Attributes need to be run through `shortcode_atts()` in order to be properly decoded.
|
56 |
* Defines a `SHORTCODE_UI_DOING_PREVIEW` constant when rendering a shortcode preview, which enables callbacks to serve a different representation of the shortcode in TinyMCE.
|
3 |
Tags: shortcodes
|
4 |
Requires at least: 4.1
|
5 |
Tested up to: 4.4
|
6 |
+
Stable tag: 0.6.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
13 |
|
14 |
Used alongside `add_shortcode`, Shortcake supplies a user-friendly interface for adding a shortcode to a post, and viewing and editing it from within the content editor.
|
15 |
|
16 |
+
Once you've installed the plugin, you'll need to [register UI for your shortcodes](https://github.com/wp-shortcake/shortcake/wiki/Registering-Shortcode-UI). For inspiration, check out [examples of Shortcake in the wild](https://github.com/wp-shortcake/shortcake/wiki/Shortcode-UI-Examples).
|
17 |
|
18 |
+
To report bugs or feature requests, [please use Github issues](https://github.com/wp-shortcake/shortcake/issues).
|
19 |
|
20 |
== Installation ==
|
21 |
|
22 |
Shortcake can be installed like any other WordPress plugin.
|
23 |
|
24 |
+
Once you've done so, you'll need to [register the UI for your code](https://github.com/wp-shortcake/shortcake/wiki/Registering-Shortcode-UI).
|
25 |
|
26 |
+
New in 0.4.0 is the ability to [attach javascript functions to event attribute updates](https://github.com/wp-shortcake/shortcake/wiki/Event-Attribute-Callbacks). Action hooks can be used to dynamically show or hide a field based on the value of another, or to implement custom validation rules.
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 0.6.1 (November 9, 2015) =
|
55 |
+
* Fixes JavaScript TypeError when clicking media frame menu items.
|
56 |
+
* Corrects links in readme.
|
57 |
+
|
58 |
= 0.6.0 (November 2, 2015) =
|
59 |
* Supports an optional `encode=true` argument for attributes, to allow limited HTML support. Attributes need to be run through `shortcode_atts()` in order to be properly decoded.
|
60 |
* Defines a `SHORTCODE_UI_DOING_PREVIEW` constant when rendering a shortcode preview, which enables callbacks to serve a different representation of the shortcode in TinyMCE.
|
shortcode-ui.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Shortcake (Shortcode UI)
|
4 |
-
* Version: 0.6.
|
5 |
* Description: User Interface for adding shortcodes.
|
6 |
* Author: Fusion Engineering and community
|
7 |
* Author URI: http://next.fusion.net/tag/shortcode-ui/
|
@@ -19,7 +19,7 @@
|
|
19 |
* GNU General Public License for more details.
|
20 |
*/
|
21 |
|
22 |
-
define( 'SHORTCODE_UI_VERSION', '0.6.
|
23 |
|
24 |
require_once dirname( __FILE__ ) . '/inc/class-shortcode-ui.php';
|
25 |
require_once dirname( __FILE__ ) . '/inc/fields/class-shortcode-ui-fields.php';
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Shortcake (Shortcode UI)
|
4 |
+
* Version: 0.6.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 |
* GNU General Public License for more details.
|
20 |
*/
|
21 |
|
22 |
+
define( 'SHORTCODE_UI_VERSION', '0.6.1' );
|
23 |
|
24 |
require_once dirname( __FILE__ ) . '/inc/class-shortcode-ui.php';
|
25 |
require_once dirname( __FILE__ ) . '/inc/fields/class-shortcode-ui-fields.php';
|