diff --git a/CHANGELOG.md b/CHANGELOG.md index ace6cd0a..5040211a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 2.12.0 (23 Sep 2018) +* Fixed: Prevented hidden columns setting from reverting to default +* Improved: Updated import page to improve usability +* Improved: Added Import button next to page title on manage page +* Improved: Added coloured banner indicating whether a snippet is active when editing +* Update CodeMirror to 5.40.0 + ## 2.11.0 (24 Jul 2018) * Added: Ability to assign a priority to snippets, to determine the order in which they are executed * Improvement: The editor cursor position will be preserved when saving a snippet diff --git a/README.md b/README.md index d76feaf1..dfc649ca 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Code Snippets [![Build Status](https://travis-ci.org/sheabunge/code-snippets.png?branch=master)](https://travis-ci.org/sheabunge/code-snippets) * __Requires at least:__ [WordPress 3.6](https://wordpress.org/download/) or later -* __Tested up to:__ WordPress 4.9.6-beta2 -* __Stable version:__ [2.10.2](https://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip) +* __Tested up to:__ WordPress 4.9.8 +* __Stable version:__ [2.12.0](https://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip) * __License:__ [MIT](license.txt) Code Snippets is an easy, clean and simple way to add code snippets to your site. It removes the need to add custom snippets to your theme theme's `functions.php` file. diff --git a/code-snippets.php b/code-snippets.php index 6e0eae41..61a0f00e 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -10,7 +10,7 @@ * @author Shea Bunge * @copyright 2012-2018 Shea Bunge * @license MIT http://opensource.org/licenses/MIT - * @version 2.11.0 + * @version 2.12.0 * @link https://github.com/sheabunge/code-snippets */ @@ -20,7 +20,7 @@ Description: An easy, clean and simple way to add code snippets to your site. No need to edit to your theme's functions.php file again! Author: Shea Bunge Author URI: https://bungeshea.com -Version: 2.11.0 +Version: 2.12.0 License: MIT License URI: license.txt Text Domain: code-snippets @@ -42,7 +42,7 @@ * @since 2.0 * @var string A PHP-standardized version number string */ -define( 'CODE_SNIPPETS_VERSION', '2.11.0' ); +define( 'CODE_SNIPPETS_VERSION', '2.12.0' ); /** * The full path to the main file of this plugin diff --git a/languages/code-snippets.pot b/languages/code-snippets.pot index 7f9b4183..7e072a70 100644 --- a/languages/code-snippets.pot +++ b/languages/code-snippets.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: code-snippets 2.11.0\n" +"Project-Id-Version: code-snippets 2.12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-07-25 00:10+1000\n" +"POT-Creation-Date: 2018-09-23 23:48+1000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,7 +23,7 @@ msgid "You are not authorized to access this page." msgstr "" #: php/admin-menus/class-edit-menu.php:13 -#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:23 +#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:31 msgid "Edit Snippet" msgstr "" @@ -32,7 +32,7 @@ msgctxt "menu label" msgid "Add New" msgstr "" -#: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:29 +#: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:37 msgid "Add New Snippet" msgstr "" @@ -64,11 +64,11 @@ msgid "" "made. No changes will be made to this site." msgstr "" -#: php/admin-menus/class-edit-menu.php:309 php/class-list-table.php:330 +#: php/admin-menus/class-edit-menu.php:309 php/class-list-table.php:332 msgid "Description" msgstr "" -#: php/admin-menus/class-edit-menu.php:342 php/class-list-table.php:331 +#: php/admin-menus/class-edit-menu.php:342 php/class-list-table.php:333 msgid "Tags" msgstr "" @@ -82,7 +82,7 @@ msgid "" "number." msgstr "" -#: php/admin-menus/class-edit-menu.php:370 php/class-list-table.php:332 +#: php/admin-menus/class-edit-menu.php:370 php/class-list-table.php:334 msgid "Priority" msgstr "" @@ -156,7 +156,7 @@ msgctxt "menu label" msgid "Import" msgstr "" -#: php/admin-menus/class-import-menu.php:16 php/views/import.php:17 +#: php/admin-menus/class-import-menu.php:16 php/views/import.php:21 msgid "Import Snippets" msgstr "" @@ -559,140 +559,140 @@ msgstr "" msgid "Snippets per page" msgstr "" -#: php/class-list-table.php:144 +#: php/class-list-table.php:147 msgid "Network Active" msgstr "" -#: php/class-list-table.php:146 +#: php/class-list-table.php:149 msgid "Network Only" msgstr "" -#: php/class-list-table.php:153 +#: php/class-list-table.php:155 msgid "Edit" msgstr "" -#: php/class-list-table.php:154 php/class-list-table.php:382 +#: php/class-list-table.php:156 php/class-list-table.php:373 msgid "Clone" msgstr "" -#: php/class-list-table.php:155 php/class-list-table.php:384 -#: php/views/edit.php:122 +#: php/class-list-table.php:157 php/class-list-table.php:375 +#: php/views/edit.php:130 msgid "Export" msgstr "" -#: php/class-list-table.php:164 php/class-list-table.php:385 -#: php/views/edit.php:135 +#: php/class-list-table.php:166 php/class-list-table.php:376 +#: php/views/edit.php:143 msgid "Delete" msgstr "" -#: php/class-list-table.php:168 +#: php/class-list-table.php:170 msgid "You are about to permanently delete the selected item." msgstr "" -#: php/class-list-table.php:169 php/views/edit.php:130 +#: php/class-list-table.php:171 php/views/edit.php:138 msgid "'Cancel' to stop, 'OK' to delete." msgstr "" -#: php/class-list-table.php:228 +#: php/class-list-table.php:230 #, php-format msgid "Untitled #%d" msgstr "" -#: php/class-list-table.php:252 +#: php/class-list-table.php:254 msgid "Shared on Network" msgstr "" -#: php/class-list-table.php:328 php/views/edit.php:46 +#: php/class-list-table.php:330 php/views/edit.php:54 msgid "Name" msgstr "" -#: php/class-list-table.php:329 +#: php/class-list-table.php:331 msgid "ID" msgstr "" -#: php/class-list-table.php:380 +#: php/class-list-table.php:371 msgid "Network Activate" msgstr "" -#: php/class-list-table.php:380 +#: php/class-list-table.php:371 msgid "Activate" msgstr "" -#: php/class-list-table.php:381 +#: php/class-list-table.php:372 msgid "Network Deactivate" msgstr "" -#: php/class-list-table.php:381 +#: php/class-list-table.php:372 msgid "Deactivate" msgstr "" -#: php/class-list-table.php:383 php/views/edit.php:117 +#: php/class-list-table.php:374 php/views/edit.php:125 msgid "Download" msgstr "" -#: php/class-list-table.php:425 +#: php/class-list-table.php:416 #, php-format msgid "All (%s)" msgid_plural "All (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:426 +#: php/class-list-table.php:417 #, php-format msgid "Active (%s)" msgid_plural "Active (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:427 +#: php/class-list-table.php:418 #, php-format msgid "Inactive (%s)" msgid_plural "Inactive (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:428 +#: php/class-list-table.php:419 #, php-format msgid "Recently Active (%s)" msgid_plural "Recently Active (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:497 +#: php/class-list-table.php:488 msgid "Show all tags" msgstr "" -#: php/class-list-table.php:511 +#: php/class-list-table.php:502 msgid "Filter" msgstr "" -#: php/class-list-table.php:519 +#: php/class-list-table.php:510 msgid "Clear List" msgstr "" -#: php/class-list-table.php:734 +#: php/class-list-table.php:725 msgid "It looks like you don't have any snippets." msgstr "" -#: php/class-list-table.php:738 +#: php/class-list-table.php:729 msgid "Perhaps you would like to add a new one?" msgstr "" -#: php/class-list-table.php:1034 +#: php/class-list-table.php:1025 msgid "Search results" msgstr "" -#: php/class-list-table.php:1037 +#: php/class-list-table.php:1028 #, php-format msgid " for “%s”" msgstr "" -#: php/class-list-table.php:1041 +#: php/class-list-table.php:1032 #, php-format msgid " in tag “%s”" msgstr "" -#: php/class-list-table.php:1049 +#: php/class-list-table.php:1040 msgid "Clear Filters" msgstr "" @@ -850,92 +850,108 @@ msgstr "" msgid "Editor Preview" msgstr "" -#: php/views/edit.php:26 php/views/manage.php:24 +#: php/views/edit.php:34 php/views/manage.php:24 msgctxt "snippet" msgid "Add New" msgstr "" -#: php/views/edit.php:47 +#: php/views/edit.php:55 msgid "Enter title here" msgstr "" -#: php/views/edit.php:52 +#: php/views/edit.php:60 msgid "Code" msgstr "" -#: php/views/edit.php:77 +#: php/views/edit.php:85 msgid "Save Changes and Execute Once" msgstr "" -#: php/views/edit.php:86 php/views/edit.php:100 +#: php/views/edit.php:94 php/views/edit.php:108 msgid "Save Changes and Activate" msgstr "" -#: php/views/edit.php:106 +#: php/views/edit.php:114 msgid "Save Changes and Deactivate" msgstr "" -#: php/views/edit.php:129 +#: php/views/edit.php:137 msgid "You are about to permanently delete this snippet." msgstr "" -#: php/views/import.php:21 +#: php/views/import.php:25 msgid "" "Upload one or more Code Snippets export files and the snippets will be " "imported." msgstr "" -#: php/views/import.php:25 +#: php/views/import.php:29 #, php-format msgid "" -"Afterwards, you will need to go to the All Snippets page " +"Afterwards, you will need to visit the All Snippets page " "to activate the imported snippets." msgstr "" -#: php/views/import.php:29 -msgid "" -"Choose one or more Code Snippets (.xml or .json) files to upload, then click " -"\"Upload files and import\"." -msgstr "" - #: php/views/import.php:36 -msgid "Choose a file from your computer:" -msgstr "" - -#: php/views/import.php:37 -msgid "(Maximum size: 8MB)" +msgid "" +"Before you can upload your import file, you will need to fix the following " +"error:" msgstr "" -#: php/views/import.php:41 +#: php/views/import.php:46 msgid "Duplicate Snippets" msgstr "" -#: php/views/import.php:44 +#: php/views/import.php:49 msgid "" "What should happen if an existing snippet is found with an identical name to " "an imported snippet?" msgstr "" -#: php/views/import.php:50 +#: php/views/import.php:56 msgid "" "Ignore any duplicate snippets: import all snippets from the file regardless " "and leave all existing snippets unchanged." msgstr "" -#: php/views/import.php:57 +#: php/views/import.php:63 msgid "" "Replace any existing snippets with a newly imported snippet of the same name." msgstr "" -#: php/views/import.php:64 +#: php/views/import.php:70 msgid "" "Do not import any duplicate snippets; leave all existing snippets unchanged." msgstr "" -#: php/views/import.php:70 +#: php/views/import.php:75 +msgid "Upload Files" +msgstr "" + +#: php/views/import.php:78 +msgid "" +"Choose one or more Code Snippets (.xml or .json) files to upload, then click " +"\"Upload files and import\"." +msgstr "" + +#: php/views/import.php:83 +msgid "Choose files from your computer:" +msgstr "" + +#: php/views/import.php:84 +#, php-format +msgid "(Maximum size: %s)" +msgstr "" + +#: php/views/import.php:93 msgid "Upload files and import" msgstr "" -#: php/views/manage.php:36 +#: php/views/manage.php:29 +msgctxt "snippets" +msgid "Import" +msgstr "" + +#: php/views/manage.php:41 msgid "Search Installed Snippets" msgstr "" diff --git a/package.json b/package.json index 29c25732..898b098f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-snippets", - "version": "2.11.0", + "version": "2.12.0", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface", "homepage": "https://wordpress.org/plugins/code-snippets", "main": "Gruntfile.js", diff --git a/php/views/manage.php b/php/views/manage.php index 128a4f75..9de142d8 100644 --- a/php/views/manage.php +++ b/php/views/manage.php @@ -26,7 +26,7 @@ ); printf( '%1$s', - esc_html_x( 'Import', 'snippet', 'code-snippets' ), + esc_html_x( 'Import', 'snippets', 'code-snippets' ), code_snippets()->get_menu_url( 'import' ) ); diff --git a/readme.txt b/readme.txt index 0e9e1061..5f63c18c 100644 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: bungeshea Donate link: https://bungeshea.com/donate Tags: code-snippets, snippets, code, php, network, multisite Requires at least: 3.6 -Tested up to: 4.9.8-beta2 +Tested up to: 4.9.8 Requires PHP: 5.2 -Stable tag: 2.11.0 +Stable tag: 2.12.0 License: MIT License URI: license.txt @@ -113,6 +113,13 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co == Changelog == += 2.12.0 (23 Sep 2018) = +* Fixed: Prevented hidden columns setting from reverting to default +* Improved: Updated import page to improve usability +* Improved: Added Import button next to page title on manage page +* Improved: Added coloured banner indicating whether a snippet is active when editing +* Update CodeMirror to 5.40.0 + = 2.11.0 (24 Jul 2018) = * Added: Ability to assign a priority to snippets, to determine the order in which they are executed * Improvement: The editor cursor position will be preserved when saving a snippet