From 9829427a64b8a71e419b01a3a30ef0349a0d2733 Mon Sep 17 00:00:00 2001 From: Nathaniel Taintor Date: Tue, 5 Sep 2017 12:15:01 -0700 Subject: [PATCH 1/2] Update readme and stable tag for 0.7.3 release - Adds release notes for 0.7.3 - Bumps asset version number, stable tag, and tested up to version - Rebuilds .pot files --- README.md | 11 ++++ languages/shortcode-ui.pot | 103 ++++++++++++++++++++++++++----------- readme.txt | 15 +++++- shortcode-ui.php | 4 +- 4 files changed, 99 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index c2d74c82..9340886d 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,17 @@ We've removed the compatibility shim for the magical `content` attribute. If you ## Changelog ## +### 0.7.3 (September 5, 2017) ### +* Security: Use nonce validation in ajax render shortcode callback to protect against CSRF. +* Bug fix: Make sure that the same js hooks fire on all field types. +* Bug fix: Fix bugs affecting multiple select fields (values could not be unset once set, and multiple default values couldn't be set). +* Bug fix: Prevent encoded fields containing two percent characters from breaking. +* Bug fix: Fix some issues where the media modal state was not reset properly if a shortcode was closed without saving. +* Enhancement: When post_select field is selecting from more than one post type, show the post type alongside the post name for easier selection. +* Enhancement: Show attachment thumbnails for any attachment type, not just images. +* Enhancement: Add more helpful error messages if no shortcodes with Shortcake UI are registered. +* Update Norwegian translation + ### 0.7.2 (April 24, 2017) ### * Bug fix: Fix behavior in WordPress 4.7.4 where editing a shortcode would insert a new shortcode into the editor rather than updating the shortcode being edited. * Bug fix: The replacement used to escape percent (%) characters in attributes only replaced the first appearance diff --git a/languages/shortcode-ui.pot b/languages/shortcode-ui.pot index c6a3e964..f2c28517 100644 --- a/languages/shortcode-ui.pot +++ b/languages/shortcode-ui.pot @@ -2,9 +2,9 @@ # This file is distributed under the GPL v2 or later. msgid "" msgstr "" -"Project-Id-Version: Shortcake (Shortcode UI) 0.7.2\n" +"Project-Id-Version: Shortcake (Shortcode UI) 0.7.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/shortcode-ui\n" -"POT-Creation-Date: 2017-04-26 19:49:27+00:00\n" +"POT-Creation-Date: 2017-09-05 19:14:53+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -42,7 +42,7 @@ msgstr "" msgid "Select Image" msgstr "" -#: dev.php:175 +#: dev.php:175 test-shortcodes.php:79 msgid "You can select multiple images." msgstr "" @@ -50,7 +50,7 @@ msgstr "" msgid "Citation Source" msgstr "" -#: dev.php:188 +#: dev.php:188 test-shortcodes.php:89 msgid "Test placeholder" msgstr "" @@ -59,7 +59,7 @@ msgid "Select Page" msgstr "" #: dev.php:200 -msgid "Select Term" +msgid "Select Tag" msgstr "" #: dev.php:207 @@ -97,108 +97,147 @@ msgid "Pull Right" msgstr "" #: dev.php:240 -msgid "Year" +msgid "CSS Classes" msgstr "" #: dev.php:241 +msgid "Which classes the shortcode should get." +msgstr "" + +#: dev.php:249 +msgid "Default" +msgstr "" + +#: dev.php:250 +msgid "Bold" +msgstr "" + +#: dev.php:251 +msgid "Italic" +msgstr "" + +#: dev.php:255 +msgid "Year" +msgstr "" + +#: dev.php:256 msgid "Optional. The year the quotation is from." msgstr "" -#: dev.php:260 +#: dev.php:275 test-shortcodes.php:47 msgid "Shortcake Dev" msgstr "" -#: dev.php:279 +#: dev.php:294 test-shortcodes.php:66 msgid "Quote" msgstr "" -#: dev.php:280 +#: dev.php:295 test-shortcodes.php:67 msgid "Include a statement from someone famous." msgstr "" -#: dev.php:352 +#: dev.php:368 test-shortcodes.php:151 msgid "Content:" msgstr "" -#: dev.php:356 +#: dev.php:372 test-shortcodes.php:155 msgid "Source:" msgstr "" -#: dev.php:360 +#: dev.php:376 test-shortcodes.php:159 msgid "Image:" msgstr "" -#: dev.php:364 +#: dev.php:380 test-shortcodes.php:163 msgid "Gallery:" msgstr "" -#: dev.php:372 +#: dev.php:388 test-shortcodes.php:171 msgid "Pages:" msgstr "" -#: dev.php:376 +#: dev.php:392 test-shortcodes.php:175 msgid "Terms:" msgstr "" -#: dev.php:380 +#: dev.php:396 test-shortcodes.php:179 msgid "Users:" msgstr "" -#: dev.php:384 +#: dev.php:400 test-shortcodes.php:183 msgid "Color:" msgstr "" -#: dev.php:388 +#: dev.php:404 test-shortcodes.php:187 msgid "Alignment:" msgstr "" -#: dev.php:392 +#: dev.php:408 +msgid "Classes:" +msgstr "" + +#: dev.php:412 test-shortcodes.php:191 msgid "Year:" msgstr "" -#: inc/class-shortcode-ui.php:118 +#: inc/class-shortcode-ui.php:102 +#. Translators: link to plugin wiki page with examples of shortcodes supporting +#. Shortcake UI +msgid "" +"The Shortcode UI plugin will not do anything unless UI is registered for " +"shortcodes through a theme or plugins. For examples, see here." +msgstr "" + +#: inc/class-shortcode-ui.php:115 +msgid "" +"Shortcode UI is installed. Try out the shortcode UI through the \"Add Post " +"element\" button in the post edit screen." +msgstr "" + +#: inc/class-shortcode-ui.php:157 msgid "Inner Content" msgstr "" -#: inc/class-shortcode-ui.php:262 inc/class-shortcode-ui.php:263 +#: inc/class-shortcode-ui.php:310 inc/class-shortcode-ui.php:311 msgid "Insert Post Element" msgstr "" -#: inc/class-shortcode-ui.php:265 +#: inc/class-shortcode-ui.php:313 #. Translators: Ignore placeholder. This is replaced with the Shortcode name #. string in JS msgid "%s Details" msgstr "" -#: inc/class-shortcode-ui.php:266 +#: inc/class-shortcode-ui.php:314 msgid "Insert Element" msgstr "" -#: inc/class-shortcode-ui.php:267 +#: inc/class-shortcode-ui.php:315 msgid "Update" msgstr "" -#: inc/class-shortcode-ui.php:268 +#: inc/class-shortcode-ui.php:316 msgid "There are no attributes to configure for this Post Element." msgstr "" -#: inc/class-shortcode-ui.php:269 +#: inc/class-shortcode-ui.php:317 msgid "Failed to load preview" msgstr "" -#: inc/class-shortcode-ui.php:270 +#: inc/class-shortcode-ui.php:318 msgid "Search" msgstr "" -#: inc/class-shortcode-ui.php:271 +#: inc/class-shortcode-ui.php:319 msgid "Insert Content" msgstr "" -#: inc/class-shortcode-ui.php:312 +#: inc/class-shortcode-ui.php:364 msgid "Add Post Element" msgstr "" -#: inc/class-shortcode-ui.php:380 +#: inc/class-shortcode-ui.php:432 msgid "Something's rotten in the state of Denmark" msgstr "" @@ -219,6 +258,10 @@ msgstr "" msgid "Back to list" msgstr "" +#: test-shortcodes.php:84 +msgid "Label" +msgstr "" + #. Plugin Name of the plugin/theme msgid "Shortcake (Shortcode UI)" msgstr "" diff --git a/readme.txt b/readme.txt index 88641563..42325576 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ 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.4 -Stable tag: 0.7.2 +Tested up to: 4.8.1 +Stable tag: 0.7.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -68,6 +68,17 @@ We've removed the compatibility shim for the magical `content` attribute. If you == Changelog == += 0.7.3 (September 5, 2017) = +* Security: Use nonce validation in ajax render shortcode callback to protect against CSRF. +* Bug fix: Make sure that the same js hooks fire on all field types. +* Bug fix: Fix bugs affecting multiple select fields (values could not be unset once set, and multiple default values couldn't be set). +* Bug fix: Prevent encoded fields containing two percent characters from breaking. +* Bug fix: Fix some issues where the media modal state was not reset properly if a shortcode was closed without saving. +* Enhancement: When post_select field is selecting from more than one post type, show the post type alongside the post name for easier selection. +* Enhancement: Show attachment thumbnails for any attachment type, not just images. +* Enhancement: Add more helpful error messages if no shortcodes with Shortcake UI are registered. +* Update Norwegian translation + = 0.7.2 (April 24, 2017) = * Bug fix: Fix behavior in WordPress 4.7.4 where editing a shortcode would insert a new shortcode into the editor rather than updating the shortcode being edited. * Bug fix: The replacement used to escape percent (%) characters in attributes only replaced the first appearance diff --git a/shortcode-ui.php b/shortcode-ui.php index a249ee7a..ca02e923 100644 --- a/shortcode-ui.php +++ b/shortcode-ui.php @@ -1,7 +1,7 @@ Date: Tue, 12 Sep 2017 13:29:27 -0700 Subject: [PATCH 2/2] Add release note about 'set active editor' bug fix See #746. --- README.md | 5 +++-- readme.txt | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9340886d..446667eb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ **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.4 -**Stable tag:** 0.7.2 +**Tested up to:** 4.8.1 +**Stable tag:** 0.7.3 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -82,6 +82,7 @@ We've removed the compatibility shim for the magical `content` attribute. If you * Bug fix: Fix bugs affecting multiple select fields (values could not be unset once set, and multiple default values couldn't be set). * Bug fix: Prevent encoded fields containing two percent characters from breaking. * Bug fix: Fix some issues where the media modal state was not reset properly if a shortcode was closed without saving. +* Bug fix: Support cases where there are multiple WP_Editor instances on a page, and make sure that the shortcode being edited is sent to the correct page. * Enhancement: When post_select field is selecting from more than one post type, show the post type alongside the post name for easier selection. * Enhancement: Show attachment thumbnails for any attachment type, not just images. * Enhancement: Add more helpful error messages if no shortcodes with Shortcake UI are registered. diff --git a/readme.txt b/readme.txt index 42325576..bd6bc686 100644 --- a/readme.txt +++ b/readme.txt @@ -74,6 +74,7 @@ We've removed the compatibility shim for the magical `content` attribute. If you * Bug fix: Fix bugs affecting multiple select fields (values could not be unset once set, and multiple default values couldn't be set). * Bug fix: Prevent encoded fields containing two percent characters from breaking. * Bug fix: Fix some issues where the media modal state was not reset properly if a shortcode was closed without saving. +* Bug fix: Support cases where there are multiple WP_Editor instances on a page, and make sure that the shortcode being edited is sent to the correct page. * Enhancement: When post_select field is selecting from more than one post type, show the post type alongside the post name for easier selection. * Enhancement: Show attachment thumbnails for any attachment type, not just images. * Enhancement: Add more helpful error messages if no shortcodes with Shortcake UI are registered.