From 9101cb7412f2ab930b122113d17f4dc9feaf074f Mon Sep 17 00:00:00 2001 From: Nathaniel Taintor Date: Wed, 16 Nov 2016 11:51:50 -0800 Subject: [PATCH 1/3] Added release notes for 0.7.0 --- README.md | 26 ++++++++++++++++++++++++-- readme.txt | 30 +++++++++++++++++++++++++++++- shortcode-ui.php | 2 +- 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2778a922..c3cc869e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Tags:** shortcodes **Requires at least:** 4.3 **Tested up to:** 4.4 -**Stable tag:** 0.6.2 +**Stable tag:** 0.7.0 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -35,7 +35,7 @@ Shortcake doesn't support custom key=>value pairs as shortcode attributes becaus We have test coverage for PHP using PHPunit, and JavaScript using Jasmine. -*Running tests locally* +### Running tests locally ### Jasmine tests can be run using `grunt jasmine` and are also run as part of the `grunt scripts` task. To update the core WordPress files used by the Jasmine test suite, run `grunt updateJasmineCoreScripts --abspath="/path/to/wordpress-install"`. @@ -66,6 +66,27 @@ We've removed the compatibility shim for the magical `content` attribute. If you ## Changelog ## +### 0.7.0 (November 18, 2016) ### +* Adds "Add post element" button to media buttons - one click to open the shortcode list, rather than clicking "Add media" button and then finding "insert post element" in the menu. +* Added "Term Select" field type. +* Added "User Select" field type. +* Added new hooks that fire on rendering/editing/closing a shortcode, which can be used for field types which require custom javascript initialization or cleanup. +* Select fields: add full support for multiple select fields. +* Select fields: support custom ordering of options. +* Select fields: support grouping option in ``s by passing them as a nested array. +* Attachment fields: support multiple selection. +* Attachment fields: support SVG images (if svg uploads are enabled by a plugin or theme). +* Bug fix: Handle percent signs when decoding fields with `encode=true` specified. +* Bug fix: fix issue where it takes two clicks on a shortcode in editor to bring up the Edit Shortcode modal. +* Bug fix: fix issue when searching for shortcodes by name where if multiple shortcodes start with the search string, only the first is returned. +* Bug fix: only output a description field on an attribute if it's not empty. +* Compatability: Remove shims for handling the media modal in WP 4.1 and 4.2. +* Compatability: Upgrade Select2 library to 4.0.3 to avoid conflicts with other plugins which use the latest version of Select2. +* Added Turkish translation. +* Added Finnish translation. +* Added Swedish translation. +* Added Hungarian translation. + ### 0.6.2 (November 12, 2015) ### * Bug fix: Listens for "change" event on radio buttons and checkboxes to ensure shortcode attributes are updated. * Bug fix: Ensures `register_shortcode_ui` is always run before calling get_shortcodes(). Fixes post select AJAX callback when using `register_shortcode_ui` hook. @@ -168,3 +189,4 @@ We've removed the compatibility shim for the magical `content` attribute. If you * Re-labeled the UI around “Post Elements”, which is more descriptive than “Content Items.” * Many bug fixes. * [Full release notes](http://next.fusion.net/2014/12/23/shortcake-v0-1-0-live-previews-fieldmanager-integration/). + diff --git a/readme.txt b/readme.txt index 755ca7fe..3ece63c4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapple Tags: shortcodes Requires at least: 4.3 Tested up to: 4.4 -Stable tag: 0.6.2 +Stable tag: 0.7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -31,6 +31,13 @@ New in 0.4.0 is the ability to [attach javascript functions to event attribute u Shortcake doesn't support custom key=>value pairs as shortcode attributes because it isn't a great user experience. +== Running tests == + +We have test coverage for PHP using PHPunit, and JavaScript using Jasmine. + += Running tests locally = + +Jasmine tests can be run using `grunt jasmine` and are also run as part of the `grunt scripts` task. To update the core WordPress files used by the Jasmine test suite, run `grunt updateJasmineCoreScripts --abspath="/path/to/wordpress-install"`. == Screenshots == @@ -51,6 +58,27 @@ We've removed the compatibility shim for the magical `content` attribute. If you == Changelog == += 0.7.0 (November 18, 2016) = +* Adds "Add post element" button to media buttons - one click to open the shortcode list, rather than clicking "Add media" button and then finding "insert post element" in the menu. +* Added "Term Select" field type. +* Added "User Select" field type. +* Added new hooks that fire on rendering/editing/closing a shortcode, which can be used for field types which require custom javascript initialization or cleanup. +* Select fields: add full support for multiple select fields. +* Select fields: support custom ordering of options. +* Select fields: support grouping option in ``s by passing them as a nested array. +* Attachment fields: support multiple selection. +* Attachment fields: support SVG images (if svg uploads are enabled by a plugin or theme). +* Bug fix: Handle percent signs when decoding fields with `encode=true` specified. +* Bug fix: fix issue where it takes two clicks on a shortcode in editor to bring up the Edit Shortcode modal. +* Bug fix: fix issue when searching for shortcodes by name where if multiple shortcodes start with the search string, only the first is returned. +* Bug fix: only output a description field on an attribute if it's not empty. +* Compatability: Remove shims for handling the media modal in WP 4.1 and 4.2. +* Compatability: Upgrade Select2 library to 4.0.3 to avoid conflicts with other plugins which use the latest version of Select2. +* Added Turkish translation. +* Added Finnish translation. +* Added Swedish translation. +* Added Hungarian translation. + = 0.6.2 (November 12, 2015) = * Bug fix: Listens for "change" event on radio buttons and checkboxes to ensure shortcode attributes are updated. * Bug fix: Ensures `register_shortcode_ui` is always run before calling get_shortcodes(). Fixes post select AJAX callback when using `register_shortcode_ui` hook. diff --git a/shortcode-ui.php b/shortcode-ui.php index d97b87ad..a6fc88b3 100644 --- a/shortcode-ui.php +++ b/shortcode-ui.php @@ -1,7 +1,7 @@ Date: Wed, 16 Nov 2016 12:08:27 -0800 Subject: [PATCH 2/3] Update core "requires" and "tested up to" versions We don't really *require* 4.5, per se, but we know that the plugin will throw some deprecated notices in WP <4.5, so CI'm specifying 4.5 as the minimum version supported. --- README.md | 4 ++-- readme.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c3cc869e..a70daeda 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Shortcake (Shortcode UI) # **Contributors:** fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov **Tags:** shortcodes -**Requires at least:** 4.3 -**Tested up to:** 4.4 +**Requires at least:** 4.5 +**Tested up to:** 4.7 **Stable tag:** 0.7.0 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index 3ece63c4..bf057e50 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Shortcake (Shortcode UI) === Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov Tags: shortcodes -Requires at least: 4.3 -Tested up to: 4.4 +Requires at least: 4.5 +Tested up to: 4.7 Stable tag: 0.7.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html From b29eee48637e4488e59027fb0232872d65c82629 Mon Sep 17 00:00:00 2001 From: Nathaniel Taintor Date: Wed, 16 Nov 2016 12:19:42 -0800 Subject: [PATCH 3/3] Update contributors list Added a few people with commits in this release whose github username I was able to match up with a wp.org profile. --- README.md | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a70daeda..1f4b286a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Shortcake (Shortcode UI) # -**Contributors:** fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov +**Contributors:** fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov, bronsonquick, dashaluna, mehigh, sc0ttkclark, kraftner, pravdomil **Tags:** shortcodes **Requires at least:** 4.5 **Tested up to:** 4.7 diff --git a/readme.txt b/readme.txt index bf057e50..a4567257 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ === Shortcake (Shortcode UI) === -Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov +Contributors: fusionengineering, mattheu, danielbachhuber, zebulonj, goldenapples, jitendraharpalani, sanchothefat, bfintal, davisshaver, garyj, mte90, fredserva, khromov, bronsonquick, dashaluna, mehigh, sc0ttkclark, kraftner, pravdomil Tags: shortcodes Requires at least: 4.5 Tested up to: 4.7