Post Snippets – Custom WordPress Code Snippets Customizer changelog
By Saad Iqbal, on WordPress.org since 2009. 20,000+ active installs.
116 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
4.2.6
No notes for this release in the current readme.
-
4.2.5
No notes for this release in the current readme.
-
- Load textdomain error fixed.
- Compatibility with WP 7.1.
-
- Vulnerability Fix: Fixed a security bug where non-PHP snippet variable substitutions allowed raw HTML markup execution depending on shortcode parameters.
- Feature: Added a per-snippet “Render HTML” toggle setting for explicit control over whether output contains raw HTML code or is escaped as plain text.
-
- Bug fixed on snippet has no variables set.
-
- Updated freemius SDK.
-
- Added – Added AI Chatbot integration to assist with generating and debugging code snippets.
-
- Tweak – Compatible with WordPress Version 7.0
-
- Vulnerability Fixes.
- Added – Data types along with snippet’s variables/placeholders.
-
- Fixed broken images in snippets.
-
- Fixed JS Code breaks.
-
- Fixed HTML tags being printed as strings
-
- Vulnerability Fix.
-
- Rollback to older version.
-
- Bug Fixes.
-
- Bug Fixes.
-
- Bug Fixes.
-
- Updated freemius Code.
-
- Tested Upto WordPress Latest Version 6.8
-
- Updated freemius SDK.
-
- Fixed – Minor bug fixes and improvements.
- Improvement – Updated Feedback library to the latest version.
- Updated freemius SDK
-
- Fixed – Minor bug fixes and improvements.
-
- Tweak – Added compatibility for WordPress Version 6.6.x
-
- Tweak – Added compatibility for WordPress Version 6.5.3
-
- Fixed – Minor Bug fixes
- Improvement – Updated Feedback library to the latest version.
-
- Improvement – Added Validation, so on ‘Custom CSS’ snippet only css styles can be added.
-
- Tweak- Minimum required wordpress version change from 5.8 to 5.3
-
- Fixed – Error when using script tag in snippets
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
- Added – snippets search functionality
- Added – REST API functionality
-
- Updated freemius SDK
-
- Fix – Menu icons not loading in The7 Theme
- Fix – Cloud Features not working
-
- Fix – Post Snippets Blocks throwing error in WordPress 5.5
-
No notes for this release in the current readme.
-
No notes for this release in the current readme.
-
- Fixed Title not saving on save button
- Fixed On Plugin activation it redirects to some inaccessible URL
- Fixed Move not working if we move more than 1 snippets
-
- Updated News Page and Author
- Fixed Duplicate snippet not working
-
- Fixed reordering of snippets (Premium only)
-
- Fixed rename snippet
-
- Fix conflict with SiteOrigin Page Builder (Editor), increase z-index so Post Snippets Insert box opens on top of the editor
- Only show submenu when Post Snippets is opened, not on all Settings pages, and remove Support Forum and Contact submenu items
- Improve stability by updating Post Snippets to string-based menu slug
- Add instructions and optimize UI for new users/new sites (with slightly pulsating “Add New Snippet” button)
- Automatically disable Post Snippets if premium version is activated
- Make ‘Post Snippets’ header title in plugin translatable
-
- Add “Support forum” link to support forum
- Add “Contact Us” link with contact form
- Add “Account” and “Upgrade” link for Pro version
- Updated Freemius SDK to 1.2.4
-
- FIX: Check for unique titles/shortcodes when creating new snippets, prevent duplicates
- Improper slashes parsing, some users woudl see multiple clashes in shortcodes/PHP code, causing snippets to not render correctly
- Prevent some editors (TinyMCE Advanced) from stacking above the Post Snippets dialog, add zindex to .ui-dialog
-
- Fixed a PHP error by changing a new style array syntax to the version that also works in PHP 5.3 (this: array())
-
No notes for this release in the current readme.
-
- NOTES: Reviewed close to 30 issues and either closed, fixed or registered them to be fixed in the future, see https://github.com/GreenTreeLabs/post-snippets/issues/68
- NEW: A nice new User Interface, a good starting point for more improvements in the future. Switched from old tables to div’s and css
- The new UI supports updating the snippet name/shortcode without a page refresh
- Expanding and collapsing individual snippets, or all snippets with a click, is now possible
- The state of snippets (expand/collapse) is personal, so snippet managers can open and close snippets as they see fit
- Added a date to the export filename as requested by multiple users, example: post-snippets-export-2014-06-14.zip
And 6 more notes.
-
- UI improvement: Add update, add new and delete buttons to top of Snippets list, not just bottom
- Add better note to guide new users to the documentation (‘Help’ in the top right of the screen)
- Update URL’s etc to https://www.postsnippets.com and update other plugin details
- Add ‘Get started’ admin notice to guide new users to Post Snippets in WordPress Settings
- Add a newsletter opt-in so users can get Post Snippets updates via email
- Add ‘Pro features’ page for feature voting, tell me what you need in Post Snippets
-
- Fixes an issue with the compression library for import and export.
-
- Fixes an issue than can occur when other plugins bootstrap WordPress Admin and then includes admin_head but not admin_footer, like download monitor.
- Refactors parts of the code to prepare for a future snippet storage update.
-
- Makes strings inside javascripts translatable.
- Removes {content} from shortcode output if the shortcode is not enclosed.
-
- Implements an options tab to handle plugin settings.
- Reverts the change implemented in version 2.3.9 to exclude post snippets from custom editors by default, and instead adds it as an optional setting.
- Fixes a conflict with plugins that adds custom editors on the frontend.
-
- Fixes potential conflict with WP Editor on none post screens.
- Removes notice message on some screens if WordPress debug mode is enabled.
-
- Only includes the javascript code to include Post Snippets in WordPress’ editor on post editing related screens, to avoid potential conflicts with other plugins.
-
- Adds validation of shortcode names. Invalid shortcode names now gets highlighted in red.
-
- Updates translatable strings to be Language Pack compatible.
-
- Bumps minimum required PHP version to 5.3.0.
- Adds list of translators to inline documentation.
-
- Adds new developer filter, post_snippets_snippets_list.
- Integrates plugin doc to the post editor help tab.
- Adds complete plugin usage documentation to the settings help tab.
-
- Tested up to WordPress v4.0.
- Update Swedish translation.
- Add Ukrainian translation.
-
- Updates Post Snippets admin screen to not let Chrome XSS Auditor preventing snippets containg form elements to be saved.
- Adds Serbo-Croatian translation.
- Updated Polish translation.
-
- Updates insert snippets into the editor to be compatible with jQuery 1.9+ (which makes it compatible with WordPress 3.6).
- Changes WP version check to comply with WordPress 3.3 as the minimum required version.
-
- Removes the $isArray argument from PostSnippets::getSnippet() as it was not needed.
-
- Updates PostSnippets::getSnippet($name, $variables) to be able to accept an array with variables and not only a querystring. Fixes issue #22.
- Removes get_post_snippet() which was deprecated in version 2.1.
- Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code execution in snippets. Add define(‘POST_SNIPPETS_DISABLE_PHP’, true); to wp-config.php or the theme’s functions.php to disable PHP execution in the plugin.
-
- Fixes issue with the QuickTag button not being displayed in Firefox.
-
- The Post Snippets buttons now works everywhere there is a wp_editor present and not only on post/page edit screens.
-
- Added an option to give users with edit_posts capability access to the Post Snippets Admin. Add define(‘POST_SNIPPETS_ALLOW_EDIT_POSTS’, true); to wp-config.php to enable access for those users. Fixes issue #12.
- Optimizes code for the admin section.
-
- Bumps required WordPress version to v3.3.
- Fixes a problem with using some HTML entities in snippets.
- Removes the screenshots from the plugin archive, to make a smaller archive.
- Updates help text for PostSnippets::getSnippet().
- Fixes a PHP warning that occurred when no post snippets exist.
- Makes the plugin PSR-2 compliant and introduces Travis CI for testing.
-
- Fixes a bug that PHP snippets called an old class definition.
-
- Default values are now respected as shortcode defaults and not only to populate the insert window’s fields.
- Allow other plugins or themes to disable the PHP Code execution feature using the new post_snippets_php_execution_enabled filter.
- PostSnippets::getSnippet() now executes shortcodes within snippets.
- The function get_post_snippet() used to retrieve snippets from other places in WordPress has been deprecated. Please update any code using this function to use PostSnippets::getSnippet() instead, which replaces the old function. get_post_snippet() will be removed in a future version. Most users are not affected by this change.
- Refactored code to comply with the PSR-0 standard.
- Migrated to GitHub to maintain the code in development. Post Snippets at GitHub.
And 2 more notes.
-
- Added tabs to the Admin page, and moved Import/Export to a separate tab.
- Pressing enter in a text field now defaults to Update and not Add.
- Fixed debug notice message displayed when deleting without any snippets selected.
- Various code refactoring and optimizations.
-
- Updated the styling for the snippet insert window in the post editor. This fixes the visual glitch with tabs spanning multiple rows.
- Users without manage_options but with edit_posts capability (authors, contributors, editors) can now see a read-only list of available snippets and related info.
- Users with read-only access can toggle if they want to see their snippets overview as rendered output or as-is.
- Enabled label for= with checkboxes.
- Included Romanian translation by Web Hosting Geeks.
-
- Added two new filters. post_snippets_import and post_snippets_export.
-
- The HTML and scripts for the popup window in the post editor is now only generated on the screens where it’s needed.
-
- Added an option to run shortcodes through wptexturize before output.
- Bugfix: Default values could be cut off. Corrected in this update.
-
- Fixed a bug that variables using a default value wasn’t inserted properly.
-
- A variable can now be assigned a default value that will be used in the insert window. Use the = sign to give a variable a default value. Ie. var1,var2=default,var3.
- Added versioning to the admin jQuery dialog CSS and the TinyMCE plugin JavaScript to prevent browser caching of older versions on update.
-
- Updated the built-in help text to include all the latest features added.
-
- Initial implementation to allow snippets to be evaluated as PHP code.
- PHP version 5.2.4 or greater is now required to run Post Snippets.
-
- Added an additional check to see if Post Snippets is loaded via a bootstrapped WP Admin that doesn’t set the is_admin() flag, so it works in that environment as well.
-
- A bug fixed with get_post_snippets() that were introduced in the last update.
- Unit test for get_post_snippets() added to automate testing that it won’t break in future updates.
-
- Updated the help text to take advantage of the new Help API introduced with WordPress 3.3.
- Updated the Swedish translation.
-
- Removed the unneeded QuickTag checkbox from the settings screen for snippets, as all snippets are now always available from the HTML editor’s QuickTag button.
-
- Updated the TinyMCE plugin for the Post Snippets button in WordPress Visual Editor to use the same jQuery UI Dialog window that the HTML button have had for some time. The consolidation of using the same window and code for the different buttons will make Post Snippets easier to maintain and update.
- Added an admin notice when running on PHP versions below 5.2.4 to prepare users that future Post Snippets requirements will be on par with WordPress 3.3.
-
- The Post Snippets HTML editor button is updated to be compatible with WordPress 3.3 refactored QuickTags.
-
- Included German translation by Brian Flores.
- For all translators: Updated the .pot file to include all the latest strings and changes.
-
- Included Hebrew translation by Sagive.
-
- Added support for using enclosed shortcodes with the snippets. Use the variable {content} in your snippets to retrieve the enclosed content.
- Updated the dropdown help text.
- Included Lithuanian translation by Nata Strazda.
-
- Fixed that a PHP warning is thrown when other scripts called the get_post_snippet() function without supplying a second argument.
-
- Fixed an escaping problem with the snippet description.
- Added Import / Export functionality.
- Snippets used as shortcodes can now nest other shortcodes in them.
-
- Added a text area field in the settings panel to enter an optional description for each snippet. This decription is displayed for the editor writing a post in the jQuery Post Snippet dialog.
- Fixed the styling of the quicktag jQuery window when the user have disabled the visual editor completely.
- Fixed problem with line formatting in the new quicktag snippets.
- Fixed a problem with JavaScript snippets breaking the admin page.
- Various small bugfixes.
-
- Specified text/javascript for the UI dialog script.
- Updated the Spanish translation by Melvis E. Leon Lopez.
-
- Added styling to the Tabs in the Quicktag jQuery dialog window to make them more “tab-like”.
- Added the possibility to use a description for each snippet to display for the user when opening the Quicktag jQuery dialog window. Snippets without description and variables, has a default information message.
- Moved the help text from below the snippets to the contextual help dropdown menu at the top of the settings page.
- Changed the required version of WordPress to 3.0.
- Request by proximity2008: A snippet without anything entered in the snippet field will not be registered as a shortcode.
-
- Complete rewrite of the QuickTags insert functionality. It now uses jQuery UI to display a similar tabbed window as the TinyMCE button does. There is now one ‘Post Snippets’ button in the HTML editor instead of a separate button for each snippet. As the QuickTags function is completely rewritten, and this is the initial release of the new method, please report if you encounter any problems with it.
- Fixed QuickTags compability with WordPress 3.1.
- Added a link to the Post Snippets Settings directly from the entry on the ‘Plugins List’ page.
- Added get_post_snippet() function to retrieve snippets directly from PHP.
-
- Included Turkish translation by Ersan Özdil.
-
- Included Spanish translation by Melvis E. Leon Lopez.
-
- The plugin now keeps linefeed formatting when inserting a snippet directly with a quicktag in the HTML editor.
- Updated the code to not generate warnings when running WordPress in debug mode.
-
- Fixed ampersands when used in a shortcode, so they are XHTML valid.
-
- Updated the plugin so it works with WordPress 2.9.x (the quicktags didn’t work in 2.9, now fixed.).
-
- Included French translation by Thomas Cailhe (Oyabi).
-
- Included Russian translation by FatCow.
-
- Changed the handling of the TinyMCE button as some server configurations had problems finding the correct path.
- Fixed a problem that didn’t let a snippet contain a tag.
-
- Added a workaround for a bug in WordPress 2.7.x wp-includes/compat.php that prevented the plugin to work correctly on webservers running with PHP below version 5.1.0 together with WP 2.7.x. This bug is patched in WordPress 2.8.
-
- Updated all code to follow the WordPress Coding Standards for consistency, if someone wants to modify my code.
- Removed the nodechangehandler from the TinyMCE js, as it didn’t fill any purpose.
- Updated the save code to remove the PHP Notice messages, if using error logging on the server.
- Added additional proofing for the variables string.
-
- Fixed a problem in the admin options that didn’t allow a form with a textarea to be used as a snippet.
- Widened the columns for SC and QT slightly in the options panel so they should look a bit better on the mac.
-
- Minor fix with quicktags and certain snippets that was left out in the last update.
-
- Fixed an escaping problem with the recently implemented shortcode function, that could cause problems on certain strings.
- Fixed an escaping problem with the quicktag javascript, that could cause problems on certain strings.
-
- Fixed some additional syntax for servers where the short_open_tag configuration setting is disabled.
-
- Removed all short syntax commands and replaced them with the full versions so the plugin also works on servers with the short_open_tag configuration setting disabled.
-
- Added a checkbox for Shortcodes (SC) in the admin panel. When checking this one a dynamic shortcode will be generated and inserted instead of the snippet, which allows snippets to be updated later on for all posts it’s been inserted into when using this option.
- Added a checkbox for Quicktags (QT) in the admin panel, so Quicktags are optional. Speeds up loading of the post editor if you don’t need the quicktag support, and only use the visual editor. Defaults to off.
-
- Fixed so the TinyMCE window adds a scrollbar if there is more variables for a snippet than fits in the window.
- Fixed a bug that snippets didn’t get inserted when using the visual editor in fullscreen mode.
-
- Fixed a problem with the regular expressions that prohibited variables consisting of just a single number to work.
- Updated the Help info in the admin page to take less space.
- Included a check so the plugin only runs in WP 2.7 or newer.
-
- Added support for Quicktags so the snippets can be made available in the HTML editor as well.
-
- Included Swedish translation.
- Added TextDomain functionality for I18n.
-
- Initial Release