From d1806a0e3d81fd670d213d5adf0e290d50f35551 Mon Sep 17 00:00:00 2001 From: Shea Bunge Date: Wed, 5 Jul 2023 19:48:47 +1000 Subject: [PATCH] Update changelog and version number for 3.4.2. --- CHANGELOG.md | 32 ++++++++++++---------- code-snippets.php | 6 ++--- package-lock.json | 4 +-- package.json | 2 +- readme.txt | 68 +++++++---------------------------------------- 5 files changed, 34 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f223ccb4..aeb013b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.4.2 (05 Jul 2023) +* Fixed: Issue causing export process to fail with fatal error. [[#](https://wordpress.org/support/topic/critical-error-on-exporting-snippets/)] +* Fixed: Type issue on `the_posts` filter when no posts available. [[#](https://wordpress.org/support/topic/collision-with-plugin-xml-sitemap-google-news/)] + ## 3.4.1 (29 Jun 2023) * Fixed: Undefined array key error. [[#](https://wordpress.org/support/topic/after-updating-occasionally-getting-undefined-array-key-query/)] * Fixed: Potential type issue when loading Prism. [[#](https://wordpress.org/support/topic/code-snippets-fatal-error-breaking-xml-sitemaps/)] @@ -53,7 +57,7 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Added: WP-CLI commands for retrieving, activating, deactivating, deleting, creating, updating, exporting and importing snippets. * Fixed: Path to iron visible when updating the pro plugin. -## 3.2.0 (22 July 2022) +## 3.2.0 (22 Jul 2022) * Fixed: Remove default value from SQL columns to improve compatibility with certain versions of MySQL. * Fixed: Delay loading snippets in Gutenberg editor blocks. (PRO) * Added: Option to show and hide line numbers in Gutenberg source code editor block. (PRO) @@ -71,7 +75,7 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Improved: Compatibility of Elementor widgets with the latest version of Elementor. (PRO) * Improved: Replace icon font menu icon with embedded SVG icon. -## 3.1.2 (3 July 2022) +## 3.1.2 (03 Jul 2022) * Updated external links and branding for Code Snippets Pro. * Improved: Add link URLs to settings pages, as an alternative to in-page navigation. * Fixed: Various fixes to block editor scripts. (PRO) @@ -149,7 +153,7 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). ## 2.14.3 (10 Dec 2021) * Fixed: Potential security issue outputting snippets-safe-mode query variable value as-is. Thanks to Krzysztof Zając for reporting. -## 2.14.2 (9 Sep 2021) +## 2.14.2 (09 Sep 2021) * Fixed: Prevent network snippets table from being created on single-site installs. * Added translations: - Spanish by [Ibidem Group](https://www.ibidemgroup.com) @@ -298,14 +302,14 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Fixed: Prevent snippets from being executed twice when saving due to invalid ID being passed to allow_execute_snippet filter. * Fixed: Re-enabled output suppression when executing snippets. -## 2.9.2 (8 Sep 2017) +## 2.9.2 (08 Sep 2017) * Fixed: Do not attempt to combine queries for fetching local and multisite snippets. -## 2.9.1 (7 Sep 2017) +## 2.9.1 (07 Sep 2017) * Fixed: Prevent illegal mix of collations errors when fetching snippets from database tables with different collations. [[#](https://wordpress.org/support/topic/issue-on-multisite-with-wpml/)] -## 2.9.0 (6 Sep 2017) +## 2.9.0 (06 Sep 2017) * Fixed: Prevented invalid properties from being set when saving a snippet. * Fixed: Use the correct protocol when saving a snippet. * Improved: Moved code to disable snippet execution into a filter hook. @@ -361,7 +365,7 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Updated CodeMirror to version 5.10.0. * Fixed a few strings not being translated. -## 2.7.2 (1 Oct 2016) +## 2.7.2 (01 Oct 2016) * Updated German translation by [Mario Siegmann](https://web-alltag.de). ## 2.7.1 (30 Sep 2016) @@ -522,10 +526,10 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Fixed empty MO translation files. * Removed duplicate MySQL primary key indexing. -## 1.9.1.1 (3 Jan 2014) +## 1.9.1.1 (03 Jan 2014) * Add capability check to site snippets importer. -## 1.9.1 (2 Jan 2014) +## 1.9.1 (02 Jan 2014) * Use an icon font for menu icon instead of embedded SVG. * Use Sass (libsass) instead of Compass. * Unminify CodeMirror scripts. @@ -566,7 +570,7 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Fixed code typo that was breaking export files. * Updated CodeMirror to 3.15. -## 1.8 (9 July 2013) +## 1.8 (09 Jul 2013) * Allow no snippet name or code to be set. * Prevented an error on fresh multisite installations. * Refactored code to use best practices. @@ -576,13 +580,13 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Added error message handling for import snippets page. * Don't encode HTML entities in database. -## 1.7.1.2 (3 May 2013) +## 1.7.1.2 (03 May 2013) * Correct path to admin menu icon. Fixes [#8](https://github.com/codesnippetspro/code-snippets/issues/8) -## 1.7.1.1 (29 April 2013) +## 1.7.1.1 (29 Apr 2013) * Fixed a bug with custom capabilities and admin menus. -## 1.7.1 (22 April 2013) +## 1.7.1 (22 Apr 2013) * Fix a bug with snippet being set as deactivated when saved. * Updated PHP Documentation completely. [[View online](https://bungeshea.github.io/code-snippets/api)] * Only load admin functions when viewing dashboard. @@ -650,7 +654,7 @@ Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfe * Changed plugin website URI. * Cleaned up some code. -## 1.3 (1 Aug 2012) +## 1.3 (01 Aug 2012) * Added export option to 'Manage Snippets' page. * Added 'Import Snippets' page. diff --git a/code-snippets.php b/code-snippets.php index 6769784a..e12784ff 100644 --- a/code-snippets.php +++ b/code-snippets.php @@ -8,11 +8,11 @@ * License: GPL-2.0-or-later * License URI: license.txt * Text Domain: code-snippets - * Version: 3.4.1 + * Version: 3.4.2 * Requires PHP: 7.0 * Requires at least: 5.0 * - * @version 3.4.1 + * @version 3.4.2 * @package Code_Snippets * @author Shea Bunge * @copyright 2012-2023 Code Snippets Pro @@ -35,7 +35,7 @@ * * @const string */ - define( 'CODE_SNIPPETS_VERSION', '3.4.1' ); + define( 'CODE_SNIPPETS_VERSION', '3.4.2' ); /** * The full path to the main file of this plugin. diff --git a/package-lock.json b/package-lock.json index 925ca092..75bfee84 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "code-snippets", - "version": "3.4.1", + "version": "3.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "code-snippets", - "version": "3.4.1", + "version": "3.4.2", "license": "GPL-2.0-or-later", "dependencies": { "@codemirror/fold": "^0.19.3", diff --git a/package.json b/package.json index 64cfd32c..0da9345e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "code-snippets", - "version": "3.4.1", + "version": "3.4.2", "description": "Manage code snippets running on a WordPress-powered site through a graphical interface", "homepage": "https://wordpress.org/plugins/code-snippets", "main": "gulpfile.babel.ts", diff --git a/readme.txt b/readme.txt index b2ef3998..b460918b 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://codesnippets.pro Tags: snippets, functions, multisite, code, php, html, css, javascript License: MIT License URI: license.txt -Stable tag: 3.4.1 +Stable tag: 3.4.2 Tested up to: 6.2.2 An easy, clean and simple way to run code snippets on your site. @@ -128,6 +128,10 @@ The best way to do this is to fork the [repository on GitHub](https://github.com == Changelog == += 3.4.2 (05 Jul 2023) = +* Fixed: Issue causing export process to fail with fatal error. [[#](https://wordpress.org/support/topic/critical-error-on-exporting-snippets/)] +* Fixed: Type issue on `the_posts` filter when no posts available. [[#](https://wordpress.org/support/topic/collision-with-plugin-xml-sitemap-google-news/)] + = 3.4.1 (29 Jun 2023) = * Fixed: Undefined array key error. [[#](https://wordpress.org/support/topic/after-updating-occasionally-getting-undefined-array-key-query/)] * Fixed: Potential type issue when loading Prism. [[#](https://wordpress.org/support/topic/code-snippets-fatal-error-breaking-xml-sitemaps/)] @@ -181,7 +185,7 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Added: WP-CLI commands for retrieving, activating, deactivating, deleting, creating, updating, exporting and importing snippets. * Fixed: Path to iron visible when updating the pro plugin. -= 3.2.0 (22 July 2022) = += 3.2.0 (22 Jul 2022) = * Fixed: Remove default value from SQL columns to improve compatibility with certain versions of MySQL. * Fixed: Delay loading snippets in Gutenberg editor blocks. (PRO) * Added: Option to show and hide line numbers in Gutenberg source code editor block. (PRO) @@ -199,7 +203,7 @@ thanks to contributions made by [Amaral Krichman](https://github.com/karmaral). * Improved: Compatibility of Elementor widgets with the latest version of Elementor. (PRO) * Improved: Replace icon font menu icon with embedded SVG icon. -= 3.1.2 (3 July 2022) = += 3.1.2 (03 Jul 2022) = * Updated external links and branding for Code Snippets Pro. * Improved: Add link URLs to settings pages, as an alternative to in-page navigation. * Fixed: Various fixes to block editor scripts. (PRO) @@ -268,64 +272,12 @@ __New in Pro__ * Added: Elementor widget for displaying content snippets. * Added: Elementor widget for displaying snippet source code. -= 2.14.6 (13 May 2022) = -* Fixed: Issue with processing uploaded import files. -* Fixed: Issue with processing tag filters. - -= 2.14.5 (10 May 2022) = -* Fixed: Incompatibility issue with older versions of PHP. - -= 2.14.4 (5 May 2022) = -* Fixed: Prevent array key errors when loading the snippet table with unknown order values. - -= 2.14.3 (10 Dec 2021) = -* Fixed: Potential security issue outputting snippets-safe-mode query variable value as-is. Thanks to Krzysztof Zając for reporting. - -= 2.14.2 (9 Sep 2021) = -* Fixed: Prevent network snippets table from being created on single-site installs. -* Added translations: - - Spanish by [Ibidem Group](https://www.ibidemgroup.com) - - Urdu by [Samuel Badree](https://mobilemall.pk/) - - Greek by [Toni Bishop from Jrop](https://www.jrop.com/) -* Added: Support for `:class` syntax to the code validator. -* Added: PHP8 support to the code linter. -* Added: Color picker feature to the code editor. -* Added: Failsafe to prevent multiple versions of Code Snippets from running simultaneously. - -= 2.14.1 (10 Mar 2021) = -* Added: Czech translation by [Lukáš Tesař](https://github.com/atomicf4ll). -* Fixed: Code validator now supports `function_exists` and `class_exists` checks. -* Fixed: Code validator now supports anonymous functions. -* Fixed: Issue with saving the hidden columns setting. -* Fixed: Replaced the outdated tag-it library with [tagger](https://github.com/jcubic/tagger) for powering the snippet tags editor. -* Added: Code direction setting for RTL users. -* Updated CodeMirror to version 5.59.4. -* Added: Additional action hooks and search API thanks to [@Spreeuw](https://github.com/Spreeuw). - -= 2.14.0 (26 Jan 2020) = -* Updated CodeMirror to version 5.50.2. -* Added: Basic error checking for duplicate functions and classes. -* Updated Italian translations to fix display issues – thanks to [Francesco Marino](https://360fun.net). -* Fixed: Ordering snippets in the table by name will now be case-insensitive. -* Added: Additional API options for retrieving snippets. -* Fixed: Code editor will now properly highlight embedded HTML, CSS and JavaScript code. -* Changed the indicator color for inactive snippets from red to grey. -* Fixed a bug preventing the editor theme from being set to default. -* Added: Store the time and date when each snippet was last modified. -* Added: Basic error checking when activating snippets. -* Fixed: Ensure that imported snippets are always inactive. -* Fixed: Check the referer on the import menu to prevent CSRF attacks. Thanks to [Chloe with the Wordfence Threat Intelligence team](https://www.wordfence.com/blog/author/wfchloe/) for reporting. -* Fixed: Ensure that individual snippet action links use proper verification. - **[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/master/CHANGELOG.md)** == Upgrade Notice == += 3.4.2 = +Bug fixes for export process and plugin compatibility. + = 3.4.0 = New editor screen and code error checking. - -= 3.3.0 = -Assorted bug fixes and additional filter hooks. - -= 3.2.2 = -Tested with WordPress 6.1.1.