diff --git a/CHANGELOG.md b/CHANGELOG.md index 5589549c..da38e702 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 2.10.0 (18 Jan 2018) +* Improved: Added support for importing from multiple export files at once +* Improved: Unbold the titles of inactive snippets for greater visual distinction +* Added: New scope for single-use snippets +* Improved: Don't show network snippets on subsites by default, and only to super admins +* Improved: Export snippets to JSON instead of XML +* Improved: More options for importing duplicate snippets +* Improved: Use strings for representing scopes internally instead of numbers +* Added: Allowed plugin settings to be unified on multisite through Network Settings option +* Fixed: Issue with incorrectly treating network snippets as site-wide for code validation +* Improved: Rename 'Export to PHP' to 'Download', and add button to edit snippet page + ## 2.9.6 (14 Jan 2018) * Added Brazilian Portuguese translation by [Bruno Borges](http://brunoborges.info) * Fixed: Use standard WordPress capabilities instead of custom capabilities to prevent lockouts diff --git a/README.md b/README.md index 99db5c21..09b22ffa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ * __Requires at least:__ [WordPress 3.6](https://wordpress.org/download/) or later * __Tested up to:__ WordPress 4.9.1 -* __Stable version:__ [2.9.6](https://downloads.wordpress.org/plugin/code-snippets.latest-stable.zip) +* __Stable version:__ [2.10.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 f53d446a..7a350887 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.9.6 + * @version 2.10.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.9.7-dev.2 +Version: 2.10.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.9.7-dev.2' ); +define( 'CODE_SNIPPETS_VERSION', '2.10.0' ); /** * The full path to the main file of this plugin diff --git a/languages/code-snippets.pot b/languages/code-snippets.pot index ada7dc0c..95ab5906 100644 --- a/languages/code-snippets.pot +++ b/languages/code-snippets.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: code-snippets 2.9.6\n" +"Project-Id-Version: code-snippets 2.10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-14 22:42+1100\n" +"POT-Creation-Date: 2018-01-18 16:05+1100\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:25 +#: php/admin-menus/class-edit-menu.php:14 php/views/edit.php:23 msgid "Edit Snippet" msgstr "" @@ -32,104 +32,112 @@ msgctxt "menu label" msgid "Add New" msgstr "" -#: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:31 +#: php/admin-menus/class-edit-menu.php:40 php/views/edit.php:29 msgid "Add New Snippet" msgstr "" -#: php/admin-menus/class-edit-menu.php:156 +#: php/admin-menus/class-edit-menu.php:162 msgid "Don't Panic" msgstr "" -#: php/admin-menus/class-edit-menu.php:157 +#: php/admin-menus/class-edit-menu.php:163 #, php-format msgid "" "The code snippet you are trying to save produced a fatal error on line %d:" msgstr "" -#: php/admin-menus/class-edit-menu.php:159 +#: php/admin-menus/class-edit-menu.php:165 msgid "" "The previous version of the snippet is unchanged, and the rest of this site " "should be functioning normally as before." msgstr "" -#: php/admin-menus/class-edit-menu.php:160 +#: php/admin-menus/class-edit-menu.php:166 msgid "" "Please use the back button in your browser to return to the previous page " "and try to fix the code error." msgstr "" -#: php/admin-menus/class-edit-menu.php:161 +#: php/admin-menus/class-edit-menu.php:167 msgid "" "If you prefer, you can close this page and discard the changes you just " "made. No changes will be made to this site." msgstr "" -#: php/admin-menus/class-edit-menu.php:286 php/class-list-table.php:347 +#: php/admin-menus/class-edit-menu.php:301 php/class-list-table.php:363 msgid "Description" msgstr "" -#: php/admin-menus/class-edit-menu.php:319 php/class-list-table.php:348 +#: php/admin-menus/class-edit-menu.php:334 php/class-list-table.php:364 msgid "Tags" msgstr "" -#: php/admin-menus/class-edit-menu.php:324 +#: php/admin-menus/class-edit-menu.php:339 msgid "Enter a list of tags; separated by commas" msgstr "" -#: php/admin-menus/class-edit-menu.php:345 +#: php/admin-menus/class-edit-menu.php:362 msgid "Run snippet everywhere" msgstr "" -#: php/admin-menus/class-edit-menu.php:346 +#: php/admin-menus/class-edit-menu.php:363 msgid "Only run in administration area" msgstr "" -#: php/admin-menus/class-edit-menu.php:347 +#: php/admin-menus/class-edit-menu.php:364 msgid "Only run on site front-end" msgstr "" -#: php/admin-menus/class-edit-menu.php:352 +#: php/admin-menus/class-edit-menu.php:365 +msgid "Only run once" +msgstr "" + +#: php/admin-menus/class-edit-menu.php:368 msgid "Scope" msgstr "" -#: php/admin-menus/class-edit-menu.php:372 +#: php/admin-menus/class-edit-menu.php:388 msgid "Sharing Settings" msgstr "" -#: php/admin-menus/class-edit-menu.php:376 +#: php/admin-menus/class-edit-menu.php:392 msgid "Allow this snippet to be activated on individual sites on the network" msgstr "" -#: php/admin-menus/class-edit-menu.php:436 +#: php/admin-menus/class-edit-menu.php:452 #, php-format msgid "The snippet has been deactivated due to an error on line %d:" msgstr "" -#: php/admin-menus/class-edit-menu.php:441 +#: php/admin-menus/class-edit-menu.php:457 msgid "The snippet has been deactivated due to an error in the code." msgstr "" -#: php/admin-menus/class-edit-menu.php:448 +#: php/admin-menus/class-edit-menu.php:464 msgid "An error occurred when saving the snippet." msgstr "" -#: php/admin-menus/class-edit-menu.php:453 +#: php/admin-menus/class-edit-menu.php:469 msgid "Snippet added." msgstr "" -#: php/admin-menus/class-edit-menu.php:454 +#: php/admin-menus/class-edit-menu.php:470 msgid "Snippet updated." msgstr "" -#: php/admin-menus/class-edit-menu.php:455 +#: php/admin-menus/class-edit-menu.php:471 msgid "Snippet added and activated." msgstr "" -#: php/admin-menus/class-edit-menu.php:456 +#: php/admin-menus/class-edit-menu.php:472 +msgid "Snippet added and executed." +msgstr "" + +#: php/admin-menus/class-edit-menu.php:473 msgid "Snippet updated and activated." msgstr "" -#: php/admin-menus/class-edit-menu.php:457 +#: php/admin-menus/class-edit-menu.php:474 msgid "Snippet updated and deactivated." msgstr "" @@ -142,15 +150,15 @@ msgstr "" msgid "Import Snippets" msgstr "" -#: php/admin-menus/class-import-menu.php:84 +#: php/admin-menus/class-import-menu.php:94 msgid "Code Snippets" msgstr "" -#: php/admin-menus/class-import-menu.php:85 +#: php/admin-menus/class-import-menu.php:95 msgid "Import snippets from a code snippets export file" msgstr "" -#: php/admin-menus/class-import-menu.php:99 +#: php/admin-menus/class-import-menu.php:111 #, php-format msgid "" "Successfully imported %d snippet. Have fun!activated." +msgid "Snippet executed." msgstr "" #: php/admin-menus/class-manage-menu.php:88 -msgid "Selected snippets activated." +msgid "Snippet activated." msgstr "" #: php/admin-menus/class-manage-menu.php:89 -msgid "Snippet deactivated." +msgid "Selected snippets activated." msgstr "" #: php/admin-menus/class-manage-menu.php:90 -msgid "Selected snippets deactivated." +msgid "Snippet deactivated." msgstr "" #: php/admin-menus/class-manage-menu.php:91 -msgid "Snippet deleted." +msgid "Selected snippets deactivated." msgstr "" #: php/admin-menus/class-manage-menu.php:92 +msgid "Snippet deleted." +msgstr "" + +#: php/admin-menus/class-manage-menu.php:93 msgid "Selected snippets deleted." msgstr "" @@ -222,50 +234,58 @@ msgstr "" msgid "Snippets Settings" msgstr "" -#: php/admin-menus/class-settings-menu.php:39 +#: php/admin-menus/class-settings-menu.php:46 msgid "Settings" msgstr "" -#: php/class-admin.php:148 +#: php/admin-menus/class-settings-menu.php:81 php/settings/settings.php:204 +msgid "Settings saved." +msgstr "" + +#: php/class-admin.php:62 +msgid "Snippets » Settings" +msgstr "" + +#: php/class-admin.php:149 msgid "Manage your existing snippets" msgstr "" -#: php/class-admin.php:179 +#: php/class-admin.php:180 msgid "Visit the WordPress.org plugin page" msgstr "" -#: php/class-admin.php:180 +#: php/class-admin.php:181 msgid "About" msgstr "" -#: php/class-admin.php:184 +#: php/class-admin.php:185 msgid "Visit the support forums" msgstr "" -#: php/class-admin.php:185 +#: php/class-admin.php:186 msgid "Support" msgstr "" -#: php/class-admin.php:189 +#: php/class-admin.php:190 msgid "Support this plugin's development" msgstr "" -#: php/class-admin.php:190 +#: php/class-admin.php:191 msgid "Donate" msgstr "" -#: php/class-admin.php:221 +#: php/class-admin.php:222 msgid "" "Have feedback on Code Snippets? Please take the time to " "answer a short survey on how you use this plugin and what you'd like to see " "changed or added in the future." msgstr "" -#: php/class-admin.php:225 +#: php/class-admin.php:226 msgid "Take the survey now" msgstr "" -#: php/class-admin.php:228 +#: php/class-admin.php:229 msgid "Dismiss" msgstr "" @@ -460,45 +480,45 @@ msgid "" "Manage Snippets page." msgstr "" -#: php/class-export.php:87 +#: php/class-export.php:89 msgid "" "This is a code snippets export file generated by the Code Snippets WordPress " "plugin." msgstr "" -#: php/class-export.php:89 +#: php/class-export.php:91 msgid "To import these snippets a WordPress site follow these steps:" msgstr "" -#: php/class-export.php:90 +#: php/class-export.php:92 msgid "1. Log in to that site as an administrator." msgstr "" -#: php/class-export.php:91 +#: php/class-export.php:93 msgid "" "2. Install the Code Snippets plugin using the directions provided at the " "above link." msgstr "" -#: php/class-export.php:92 +#: php/class-export.php:94 msgid "3. Go to 'Tools: Import' in the WordPress admin panel." msgstr "" -#: php/class-export.php:93 +#: php/class-export.php:95 msgid "4. Click on the \"Code Snippets\" importer in the list" msgstr "" -#: php/class-export.php:94 +#: php/class-export.php:96 msgid "5. Upload this file using the form provided on that page." msgstr "" -#: php/class-export.php:95 +#: php/class-export.php:97 msgid "" "6. Code Snippets will then import all of the snippets and associated " "information contained in this file into your site." msgstr "" -#: php/class-export.php:96 +#: php/class-export.php:98 msgid "" "7. You will then have to visit the 'Snippets: All Snippets' admin menu and " "activate desired snippets." @@ -508,139 +528,143 @@ msgstr "" msgid "Snippets per page" msgstr "" -#: php/class-list-table.php:121 php/class-list-table.php:393 +#: php/class-list-table.php:121 php/class-list-table.php:409 msgid "Network Deactivate" msgstr "" -#: php/class-list-table.php:121 php/class-list-table.php:194 -#: php/class-list-table.php:393 +#: php/class-list-table.php:121 php/class-list-table.php:205 +#: php/class-list-table.php:409 msgid "Deactivate" msgstr "" -#: php/class-list-table.php:130 php/class-list-table.php:392 +#: php/class-list-table.php:131 +msgid "Run Once" +msgstr "" + +#: php/class-list-table.php:141 php/class-list-table.php:408 msgid "Network Activate" msgstr "" -#: php/class-list-table.php:130 php/class-list-table.php:194 -#: php/class-list-table.php:392 +#: php/class-list-table.php:141 php/class-list-table.php:205 +#: php/class-list-table.php:408 msgid "Activate" msgstr "" -#: php/class-list-table.php:140 php/class-list-table.php:210 +#: php/class-list-table.php:151 php/class-list-table.php:221 msgid "Edit" msgstr "" -#: php/class-list-table.php:146 php/class-list-table.php:216 -#: php/class-list-table.php:394 php/views/edit.php:111 +#: php/class-list-table.php:157 php/class-list-table.php:227 +#: php/class-list-table.php:411 php/views/edit.php:122 msgid "Export" msgstr "" -#: php/class-list-table.php:155 php/class-list-table.php:228 -#: php/class-list-table.php:395 php/views/edit.php:124 +#: php/class-list-table.php:166 php/class-list-table.php:239 +#: php/class-list-table.php:412 php/views/edit.php:135 msgid "Delete" msgstr "" -#: php/class-list-table.php:162 php/class-list-table.php:238 +#: php/class-list-table.php:173 php/class-list-table.php:249 msgid "You are about to permanently delete the selected item." msgstr "" -#: php/class-list-table.php:163 php/class-list-table.php:239 -#: php/views/edit.php:119 +#: php/class-list-table.php:174 php/class-list-table.php:250 +#: php/views/edit.php:130 msgid "'Cancel' to stop, 'OK' to delete." msgstr "" -#: php/class-list-table.php:170 +#: php/class-list-table.php:181 msgid "Network Active" msgstr "" -#: php/class-list-table.php:172 +#: php/class-list-table.php:183 msgid "Network Only" msgstr "" -#: php/class-list-table.php:259 +#: php/class-list-table.php:270 #, php-format msgid "Untitled #%d" msgstr "" -#: php/class-list-table.php:282 +#: php/class-list-table.php:298 msgid "Shared on Network" msgstr "" -#: php/class-list-table.php:345 php/views/edit.php:48 +#: php/class-list-table.php:361 php/views/edit.php:46 msgid "Name" msgstr "" -#: php/class-list-table.php:346 +#: php/class-list-table.php:362 msgid "ID" msgstr "" -#: php/class-list-table.php:396 -msgid "Export to PHP" +#: php/class-list-table.php:410 php/views/edit.php:117 +msgid "Download" msgstr "" -#: php/class-list-table.php:434 +#: php/class-list-table.php:450 #, php-format msgid "All (%s)" msgid_plural "All (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:435 +#: php/class-list-table.php:451 #, php-format msgid "Active (%s)" msgid_plural "Active (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:436 +#: php/class-list-table.php:452 #, php-format msgid "Inactive (%s)" msgid_plural "Inactive (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:437 +#: php/class-list-table.php:453 #, php-format msgid "Recently Active (%s)" msgid_plural "Recently Active (%s)" msgstr[0] "" msgstr[1] "" -#: php/class-list-table.php:500 +#: php/class-list-table.php:516 msgid "Show all tags" msgstr "" -#: php/class-list-table.php:514 +#: php/class-list-table.php:530 msgid "Filter" msgstr "" -#: php/class-list-table.php:522 +#: php/class-list-table.php:538 msgid "Clear List" msgstr "" -#: php/class-list-table.php:709 +#: php/class-list-table.php:729 msgid "Whoops, it looks like no snippets could be found." msgstr "" -#: php/class-list-table.php:713 +#: php/class-list-table.php:733 msgid "Perhaps you would like to add a new one?" msgstr "" -#: php/class-list-table.php:1010 +#: php/class-list-table.php:1031 msgid "Search results" msgstr "" -#: php/class-list-table.php:1013 +#: php/class-list-table.php:1034 #, php-format msgid " for “%s”" msgstr "" -#: php/class-list-table.php:1017 +#: php/class-list-table.php:1038 #, php-format msgid " in tag “%s”" msgstr "" -#: php/class-list-table.php:1025 +#: php/class-list-table.php:1046 msgid "Clear Filters" msgstr "" @@ -682,7 +706,9 @@ msgid "Show Network Snippets" msgstr "" #: php/settings/settings-fields.php:72 -msgid "Show network-wide snippets in the snippets table on subsites" +msgid "" +"Show network-wide snippets in the snippets table on subsites to super " +"administrators only" msgstr "" #: php/settings/settings-fields.php:77 @@ -779,80 +805,102 @@ msgstr "" msgid "Highlight all instances of a currently selected word." msgstr "" -#: php/settings/settings.php:68 +#: php/settings/settings.php:88 msgid "General" msgstr "" -#: php/settings/settings.php:69 +#: php/settings/settings.php:89 msgid "Description Editor" msgstr "" -#: php/settings/settings.php:70 +#: php/settings/settings.php:90 msgid "Code Editor" msgstr "" -#: php/settings/settings.php:119 +#: php/settings/settings.php:147 msgid "Editor Preview" msgstr "" -#: php/settings/settings.php:176 -msgid "Settings saved." -msgstr "" - -#: php/views/edit.php:28 php/views/manage.php:22 +#: php/views/edit.php:26 php/views/manage.php:22 msgctxt "snippet" msgid "Add New" msgstr "" -#: php/views/edit.php:49 +#: php/views/edit.php:47 msgid "Enter title here" msgstr "" -#: php/views/edit.php:54 +#: php/views/edit.php:52 msgid "Code" msgstr "" -#: php/views/edit.php:81 php/views/edit.php:95 +#: php/views/edit.php:77 +msgid "Save Changes and Execute Once" +msgstr "" + +#: php/views/edit.php:86 php/views/edit.php:100 msgid "Save Changes and Activate" msgstr "" -#: php/views/edit.php:101 +#: php/views/edit.php:106 msgid "Save Changes and Deactivate" msgstr "" -#: php/views/edit.php:118 +#: php/views/edit.php:129 msgid "You are about to permanently delete this snippet." msgstr "" #: php/views/import.php:21 msgid "" -"Howdy! Upload your Code Snippets export file and we’ll import the " -"snippets to this site." +"Upload one or more Code Snippets export files and the snippets will be " +"imported." msgstr "" -#: php/views/import.php:23 +#: php/views/import.php:25 #, php-format msgid "" -"You will need to go to the All Snippets page to activate " -"the imported snippets." +"Afterwards, you will need to go to the All Snippets page " +"to activate the imported snippets." msgstr "" -#: php/views/import.php:25 +#: php/views/import.php:29 msgid "" -"Choose a Code Snippets (.xml) file to upload, then click Upload file and " -"import." +"Choose one or more Code Snippets (.xml or .json) files to upload, then click " +"\"Upload files and import\"." msgstr "" -#: php/views/import.php:32 +#: php/views/import.php:36 msgid "Choose a file from your computer:" msgstr "" -#: php/views/import.php:33 +#: php/views/import.php:37 msgid "(Maximum size: 8MB)" msgstr "" -#: php/views/import.php:39 -msgid "Upload file and import" +#: php/views/import.php:44 +msgid "" +"What should happen if an existing snippet is found with an identical name to " +"an imported snippet?" +msgstr "" + +#: php/views/import.php:50 +msgid "" +"Ignore any duplicate snippets: import all snippets from the file regardless " +"and leave all existing snippets unchanged." +msgstr "" + +#: php/views/import.php:57 +msgid "" +"Replace any existing snippets with a newly imported snippet of the same name." +msgstr "" + +#: php/views/import.php:64 +msgid "" +"Do not import any duplicate snippets; leave all existing snippets unchanged." +msgstr "" + +#: php/views/import.php:70 +msgid "Upload files and import" msgstr "" #: php/views/manage.php:34 diff --git a/package.json b/package.json index 24d5553a..c6a0633d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-snippets", - "version": "2.9.6", + "version": "2.10.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/upgrade.php b/php/upgrade.php index 8d09bfca..57bc88b6 100644 --- a/php/upgrade.php +++ b/php/upgrade.php @@ -29,7 +29,7 @@ function code_snippets_upgrader() { update_option( 'code_snippets_version', CODE_SNIPPETS_VERSION ); /* Update the scope column of the database */ - if ( version_compare( $prev_version, '2.9.7', '<' ) ) { + if ( version_compare( $prev_version, '2.10.0', '<' ) ) { $wpdb->query( "UPDATE {$wpdb->snippets} SET scope = 'global' WHERE scope = 0" ); $wpdb->query( "UPDATE {$wpdb->snippets} SET scope = 'admin' WHERE scope = 1" ); $wpdb->query( "UPDATE {$wpdb->snippets} SET scope = 'front-end' WHERE scope = 2" ); @@ -56,7 +56,7 @@ function code_snippets_upgrader() { update_site_option( 'code_snippets_version', CODE_SNIPPETS_VERSION ); /* Update the scope column of the database */ - if ( version_compare( $prev_version, '2.9.7', '<' ) ) { + if ( version_compare( $prev_version, '2.10.0', '<' ) ) { $wpdb->query( "UPDATE {$wpdb->ms_snippets} SET scope = 'global' WHERE scope = 0" ); $wpdb->query( "UPDATE {$wpdb->ms_snippets} SET scope = 'admin' WHERE scope = 1" ); $wpdb->query( "UPDATE {$wpdb->ms_snippets} SET scope = 'front-end' WHERE scope = 2" ); diff --git a/readme.txt b/readme.txt index 762b5726..ee626aa2 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://bungeshea.com/donate/ Tags: code-snippets, snippets, code, php, network, multisite Requires at least: 3.6 Tested up to: 4.9.1 -Stable tag: 2.9.6 +Stable tag: 2.10.0 License: MIT License URI: license.txt @@ -111,6 +111,18 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co == Changelog == += 2.10.0 (18 Jan 2018) = +* Improved: Added support for importing from multiple export files at once +* Improved: Unbold the titles of inactive snippets for greater visual distinction +* Added: New scope for single-use snippets +* Improved: Don't show network snippets on subsites by default, and only to super admins +* Improved: Export snippets to JSON instead of XML +* Improved: More options for importing duplicate snippets +* Improved: Use strings for representing scopes internally instead of numbers +* Added: Allowed plugin settings to be unified on multisite through Network Settings option +* Fixed: Issue with incorrectly treating network snippets as site-wide for code validation +* Improved: Rename 'Export to PHP' to 'Download', and add button to edit snippet page + = 2.9.6 (14 Jan 2018) = * Added Brazilian Portuguese translation by [Bruno Borges](http://brunoborges.info) * Fixed: Use standard WordPress capabilities instead of custom capabilities to prevent lockouts @@ -494,6 +506,9 @@ That's fantastic! Fork the [repository on GitHub](http://github.com/sheabunge/co == Upgrade Notice == += 2.10.0 = +Improvements for multisite and new single-use snippet scope + = 2.9.5 = Fixed issue with saving snippets on multisite