PluginProbe
Post Snippets – Custom WordPress Code Snippets Customizer / 4.2.2
Post Snippets – Custom WordPress Code Snippets Customizer v4.2.2
4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.1 1.7.2 1.7.3 1.8 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.8.9.1 1.8.9.2 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 All 115 releases
post-snippets / readme.txt

readme.txt in Post Snippets – Custom WordPress Code Snippets Customizer 4.2.2, at readme.txt

740 lines 32.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 === Post Snippets - Custom WordPress Code Snippets Customizer ===
2 Contributors: wpexpertsio
3 Tags: custom snippet, custom shortcode, snippet, snippets, shortcode
4 Requires at least: 5.3
5 Tested up to: 7.0
6 Requires PHP: 8.0
7 Stable tag: 4.2.2
8 License: GPLv2 or later
9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
11 Create WordPress custom snippets shortcodes and reusable content and insert them in into your posts and pages.
12
13 == Description ==
14
15 > Create custom shortcodes and reusable content and insert them in into your posts and pages.
16
17 [Post Snippets](https://postsnippets.com/) lets you build a library with snippets of HTML, PHP code or reoccurring text that you often use in your posts and pages. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor via a button in the Visual mode. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet. PHP code is supported for snippets inserted as shortcodes.
18
19 = Basic Features =
20
21 * **Insert** All defined snippets is inserted from a button directly in the post editor.
22 * **Shortcodes** You can use this plugin to create your own custom shortcodes.
23 * **PHP** A shortcode snippet can optionally be processed as PHP code.
24 * **Buttons** The snippets can be found in the (visual) WordPress editor with a button and in the HTML editor with a quicktag.
25 * **User-friendly** Easy to use 'Manage Snippets' page where you can add, edit and remove snippets.
26 * **Variables** Each snippet can have as many custom variables as you like, which can be used on insert.
27 * **Import/Export** Snippets can be imported and exported between sites.
28 * **Documentation** Full documentation is available directly from the help panel in the plugin (top right in WordPress).
29 * **Uninstall** If you delete the plugin from your plugins panel it cleans up all data it has created in the WordPress database.
30 * **AI Chatbot Integration** A built-in AI assistant to help you write and debug snippets directly from the post editor settings and custom code pages.
31
32 = Premium Features =
33 * **Snippet duplication** Easily duplicate shortcode snippets and insert them into posts and pages.
34 * **Rich Text Editor** Use Post Snippets’ built-in Rich Text editor to customize your snippets however you want.
35 * **Snippets Order** Change the order of your snippets simply by using the drag and drop functionality.
36 * **Rest API** Allow anyone the right to add, edit, update and delete any snippet without providing them admin access.
37 * **Tags** Use the tags feature to add multiple tags and filter different snippets by using tags.
38 * **Cloud snippet** Save, edit, download, and delete snippets directly on the cloud by using the cloud snippets feature.
39 * **Gutenberg Block Editor Support** Gutenberg block types can support any number of built-in core features such as name, icon, description, category and more.
40 * **Snippet type** Display the snippet types (PHP, JS, CSS) by adding a column in the snippet listing page.
41 * **The Gutenberg editor** integrates source code snippets block to insert and preview selected snippet's code on the front-end without execution.
42 * **Elementor editor** adds a post-snippet block for inserting snippets with PHP execution, formatting, shortcode support, and a Post Snippet source block to showcase snippet source code.
43
44 = Technical Documentation =
45 To obtain more information, including instructions for plugin installation, we recommend referring to our technical [documentation](https://postsnippets.com/documentation/) page on Post Snippets. Additionally, to stay informed about the latest plugin updates, enhancements, and relevant news, you can always visit our [Post Snippets blog.](https://postsnippets.com/blog/)
46
47 = Support =
48 To get your queries resolved related to Post Snippets, you can always take help from [WordPress Support.](https://wordpress.org/support/plugin/post-snippets/)
49
50 = Pricing Plans =
51 Post Snippets offers budget-friendly pricing options that complement your business needs. See the pricing plan details [here.](https://postsnippets.com/#pricing)
52
53
54 == Installation ==
55
56 = Requirements =
57
58 * PHP version 7 or greater.
59 * WordPress version 5.8 or greater.
60
61 = Automatic installation =
62
63 1. Install the plugin via Plugins > New plugin. Search for 'Post Snippets'.
64 2. Activate the 'Post Snippets' plugin through the 'Plugins' menu in WordPress.
65 3. Go to Settings > Post Snippets and start entering your snippets.
66
67 = Manual installation =
68
69 1. Unpack the downloaded package
70 2. Unzip and upload the directory 'post-snippets' to the `/wp-content/plugins/` directory
71 3. Activate the 'Post Snippets' plugin through the 'Plugins' menu in WordPress
72 4. Go to Settings > Post Snippets and start entering your snippets.
73
74 = Uninstall =
75
76 1. Deactivate Post Snippets in the 'Plugins' menu in WordPress.
77 2. Select Post Snippets in the 'Recently Active Plugins' section and select
78 'Delete' from the 'Bulk Actions' drop down menu.
79 3. This will delete all the plugin files from the server as well as erasing all
80 options the plugin has stored in the database.
81
82 == Frequently Asked Questions ==
83
84 = Where can I the documentation? =
85
86 Documentation for the plugin is available directly from the Help panel in the
87 plugin administration screen (top right corner of WordPress).
88
89 = Why does importing Snippets on a Multisite installation fail? =
90
91 Uploading of zip files must be allowed, enable this in Sites Network Admin > Settings > Upload Settings > Upload file types.
92
93 = How can I use the content in an enclosed shortcode? =
94
95 If the shortcode is enclosed and contains content between the tags in a post. Example: `[shortcode]Some text[/shortcode]` the text within will be available in a variable called content. So in your snippet use {content} to display it. Don't enter 'content' in the variable field, it's automatically assigned.
96
97 = Where can I get support? =
98
99 Please visit the [Support Forum](https://wordpress.org/support/plugin/post-snippets) for questions, answers, support and feature requests.
100
101 = Can I disable the PHP Code Execution feature? =
102
103 To disable the "PHP Code" execution feature in this plugin, add the following code your theme's functions.php or to wp-config.php: `define('POST_SNIPPETS_DISABLE_PHP', true);`
104
105 This is useful if you are using this plugin for client sites, and don't want
106 your clients to be able to use PHP code in a post snippet.
107
108 == Screenshots ==
109
110 1. Settings > Post Snippets: the admin page where you create and manage snippets.
111 2. The convenient button for Post Snippets in the WordPress editor.
112 3. The Post Snippet insert dialog that shows all snippets.
113 4. Example of an inserted snippet, with optional variables.
114 5. Easy to access inline documentation (top right 'Help' button in WordPress).
115
116 == Changelog ==
117
118 = Version 4.2.2 - 05 Aug 2026 =
119 * Bug fixed on snippet has no variables set.
120
121 = Version 4.2.1 - 21 July 2026 =
122 * Updated freemius SDK.
123
124 = Version 4.2.0 - 18 June 2026 =
125 * Added - Added AI Chatbot integration to assist with generating and debugging code snippets.
126
127 = Version 4.1.2 - 09 June 2026 =
128 * Fixed removed slashed from Classic Editor.
129
130 = Version 4.1.1 - 21 May 2026 =
131 * Tweak – Compatible with WordPress Version 7.0
132
133 = Version 4.1.0 - 10 April 2026 =
134 * Vulnerability Fixes.
135 * Added - Data types along with snippet's variables/placeholders.
136
137 = Version 4.0.19 - 24 March 2026 =
138 * Fixed broken images in snippets.
139
140 = Version 4.0.18 - 12 March 2026 =
141 * Fixed JS Code breaks.
142
143 = Version 4.0.17 - 27 February 2026 =
144 * Fixed HTML tags being printed as strings
145
146 = Version 4.0.16 - 23 February 2026 =
147 * Vulnerability Fix.
148
149 = Version 4.0.15 - 05 February 2026 =
150 * Rollback to older version.
151
152 = Version 4.0.14 - 03 February 2026 =
153 * Bug Fixes.
154
155 = Version 4.0.13 - 30 January 2026 =
156 * Bug Fixes.
157
158 = Version 4.0.12 - 05 January 2026 =
159 * Bug Fixes.
160
161 = Version 4.0.11 - 05 May 2025 =
162 * Updated freemius Code.
163
164 = Version 4.0.10 - 15 Apr 2025 =
165 * Tested Upto WordPress Latest Version 6.8
166
167 = Version 4.0.9 - 27 Jan 2025 =
168 * Updated freemius SDK.
169
170 = Version 4.0.8 - 09 Dec 2024 =
171 * Fixed - Minor bug fixes and improvements.
172 * Improvement - Updated Feedback library to the latest version.
173 * Updated freemius SDK
174
175 = Version 4.0.7 - 05 Nov 2024 =
176 * Fixed - Minor bug fixes and improvements.
177
178 = Version 4.0.6 - 07 Aug 2024 =
179 * Tweak - Added compatibility for WordPress Version 6.6.x
180
181 = Version 4.0.5 - 17 may 2024 =
182 * Tweak - Added compatibility for WordPress Version 6.5.3
183
184 = Version 4.0.4 - 6 july 2023 =
185 * Fixed - Minor Bug fixes
186 * Improvement - Updated Feedback library to the latest version.
187
188 = Version 4.0.3 - 14 Feb 2023 =
189 * Improvement - Added Validation, so on 'Custom CSS' snippet only css styles can be added.
190
191 = Version 4.0.2 - 3 Jan 2023 =
192 * Tweak- Minimum required wordpress version change from 5.8 to 5.3
193
194 = Version 4.0.1 - 14 Dec 2022 =
195 * Fixed - Error when using script tag in snippets
196
197 = Version 4.0.0 - 14 Jan 2021 =
198 * Improvement - Plugin code revamped.
199 * Improvement - Added sanitation, escaping and validation.
200 * Improvement - Cloud upload and download.
201 * Improvement - Snippets now getting saved in separate db table instead of options table.
202 * Improvement - back-end UI .
203 * Improvement - Bulk Actions now include Activate/Deactivate
204 * Improvement - Post Editor screen for editing of snippets.
205 * Improvement - Snippets now displayed as table list.
206 * Added - Snippets Groups,
207 * Added - Option to delete snippets on uninstalling of plugins
208 * Fixed - Block Editor bugs
209
210 = Version 3.1.3 - 5 Mar 2021 =
211 * Added - snippets search functionality
212 * Added - REST API functionality
213
214 = Version 3.1.2 - 11 Nov 2020 =
215 * Updated freemius SDK
216
217 = Version 3.1.1 - 4 Nov 2020 =
218 * Fix - Menu icons not loading in The7 Theme
219 * Fix - Cloud Features not working
220
221 = Version 3.1 - 1 Sep 2020 =
222 * Fix - Post Snippets Blocks throwing error in WordPress 5.5
223
224 = Version 3.0.23 - 20 May 2020 =
225 * Improvement - Improved import functionality
226 * Fix - Issues in freemius redirects
227 * Fix - POST_SNIPPETS_ALLOW_EDIT_POSTS not working
228
229 = Version 3.0.22 - 05 May 2020 =
230 * Fixed Saving breaks when PHP snippets are disabled
231 * Fixed Wrong message being displayed when we save title without making any changes
232 * Fixed Title always saving in lowercase letters
233 * Improvement Code Optimized to improve security
234
235 = Version 3.0.19 - 17 Apr 2020 =
236 * Fixed Title not saving on save button
237 * Fixed On Plugin activation it redirects to some inaccessible URL
238 * Fixed Move not working if we move more than 1 snippets
239
240 = Version 3.0.18 - 09 Apr 2020 =
241 * Updated News Page and Author
242 * Fixed Duplicate snippet not working
243
244 = Version 3.0.17 - 02 Apr 2020 =
245 * Fixed reordering of snippets (Premium only)
246
247 = Version 3.0.16 - 16 Mar 2020 =
248 * Fixed rename snippet
249
250 = Version 3.0.15 - 10 Mar 2020 =
251 * Gutenberg block
252 * Save snippets through ajax calls
253 * News page with changelog
254 * Post Snippets menu
255
256 = Version 3.0.14 - 19 Nov 2019 =
257 * Fixed issue with attributes containing hyphens/dashes
258
259 = Version 3.0.13 - 12 Nov 2019 =
260 * Updated Freemius SDK
261
262 = Version 3.0.12 - 28 Aug 2019 =
263 * Updated Freemius SDK
264
265 = Version 3.0.11 - 2 Lug 2019 =
266 * Added language pack for TinyMCE
267
268 = Version 3.0.10 - 2 Lug 2019 =
269 * Updated Freemius SDK
270 * Added compatibility with PHP 7.3
271
272 = Version 3.0.9 - 1 Lug 2019 =
273 * Updated Freemius SDK (Premium only)
274
275 = Version 3.0.8 - 8 Apr 2019 =
276 * Added multi-site snippets sync feature (Premium only)
277
278 = Version 3.0.7 - 27 Feb 2019 =
279 * Removed unused function
280
281 = Version 3.0.6 - 27 Feb 2019 =
282 * Security Fix
283 * Rich Text Format (PRO version only)
284
285 = Version 3.0.5 - 13 May 2018 =
286 * Fix conflict with SiteOrigin Page Builder (Editor), increase z-index so Post Snippets Insert box opens on top of the editor
287 * Only show submenu when Post Snippets is opened, not on all Settings pages, and remove Support Forum and Contact submenu items
288 * Improve stability by updating Post Snippets to string-based menu slug
289 * Add instructions and optimize UI for new users/new sites (with slightly pulsating "Add New Snippet" button)
290 * Automatically disable Post Snippets if premium version is activated
291 * Make 'Post Snippets' header title in plugin translatable
292
293 = Version 3.0.4 - 20 Feb 2018 =
294 * Add "Support forum" link to support forum
295 * Add "Contact Us" link with contact form
296 * Add "Account" and "Upgrade" link for Pro version
297 * Updated Freemius SDK to 1.2.4
298
299 = Version 3.0.3 - 15 Feb 2018 =
300 * FIX:
301 * Check for unique titles/shortcodes when creating new snippets, prevent duplicates
302 * Improper slashes parsing, some users woudl see multiple clashes in shortcodes/PHP code, causing snippets to not render correctly
303 * Prevent some editors (TinyMCE Advanced) from stacking above the Post Snippets dialog, add zindex to .ui-dialog
304
305 = Version 3.0.2 - 13 Jan 2018 =
306 * Fixed a PHP error by changing a new style array syntax to the version that also works in PHP 5.3 (this: array())
307
308 = Version 3.0.0 - 13 Jan 2018 =
309 * NOTES:
310 * 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
311
312 * NEW:
313 * A nice new User Interface, a good starting point for more improvements in the future. Switched from old tables to div's and css
314 * The new UI supports updating the snippet name/shortcode without a page refresh
315 * Expanding and collapsing individual snippets, or all snippets with a click, is now possible
316 * The state of snippets (expand/collapse) is personal, so snippet managers can open and close snippets as they see fit
317 * Added a date to the export filename as requested by multiple users, example: post-snippets-export-2014-06-14.zip
318
319 * FIX:
320 * Compatibility for PHP 7.2
321 * Fix some URL's in the plugin so they also work when post-snippets folder is not exactly "post-snippets"
322 * Remove uninstall actions, I believe it's not user friendly to remove data when user uninstalls, what if they are updating (manually)?
323
324 * DEV:
325 * Added version tags to assets, so updated of javascript and css happen without issues in the following updates
326 * Added conditional code for checking if dialog and tabs functions exists, by KZeni
327 * Added Freemius SDK, which will help with improving Post Snippets in the future. It's completely opt-in, you can keep it disabled.
328
329 = Version 2.5.4 - 30 Nov 2017 =
330 * UI improvement: Add update, add new and delete buttons to top of Snippets list, not just bottom
331 * Add better note to guide new users to the documentation ('Help' in the top right of the screen)
332 * Update URL's etc to https://www.postsnippets.com and update other plugin details
333 * Add 'Get started' admin notice to guide new users to Post Snippets in WordPress Settings
334 * Add a newsletter opt-in so users can get Post Snippets updates via email
335 * Add 'Pro features' page for feature voting, tell me what you need in Post Snippets
336
337 = Version 2.5.3 - 14 Feb 2016 =
338 * Fixes an issue with the compression library for import and export.
339
340 = Version 2.5.2 - 7 Feb 2016 =
341 * Fixes an issue than can occur when other plugins bootstrap WordPress Admin
342 and then includes `admin_head` but not `admin_footer`, like download monitor.
343 * Refactors parts of the code to prepare for a future snippet storage update.
344
345 = Version 2.5.1 - 6 Feb 2016 =
346 * Makes strings inside javascripts translatable.
347 * Removes `{content}` from shortcode output if the shortcode is not enclosed.
348
349 = Version 2.5 - 21 Jan 2016 =
350 * Implements an options tab to handle plugin settings.
351 * Reverts the change implemented in version 2.3.9 to exclude post snippets from
352 custom editors by default, and instead adds it as an optional setting.
353 * Fixes a conflict with plugins that adds custom editors on the frontend.
354
355 = Version 2.4 - 18 Dec 2015 =
356 * Fixes potential conflict with WP Editor on none post screens.
357 * Removes notice message on some screens if WordPress debug mode is enabled.
358
359 = Version 2.3.9 - 14 Dec 2015 =
360 * Only includes the javascript code to include Post Snippets in WordPress'
361 editor on post editing related screens, to avoid potential conflicts with
362 other plugins.
363
364 = Version 2.3.8 - 10 Dec 2015 =
365 * Adds validation of shortcode names. Invalid shortcode names now gets
366 highlighted in red.
367
368 = Version 2.3.7 - 4 Nov 2015 =
369 * Updates translatable strings to be Language Pack compatible.
370
371 = Version 2.3.6 - 15 Jul 2015 =
372 * Bumps minimum required PHP version to 5.3.0.
373 * Adds list of translators to inline documentation.
374
375 = Version 2.3.5 - 18 Jan 2015 =
376 * Adds new developer filter, `post_snippets_snippets_list`.
377 * Integrates plugin doc to the post editor help tab.
378 * Adds complete plugin usage documentation to the settings help tab.
379
380 = Version 2.3.4 - 20 Sep 2014 =
381 * Tested up to WordPress v4.0.
382 * Update Swedish translation.
383 * Add Ukrainian translation.
384
385 = Version 2.3.3 - 12 Apr 2014 =
386 * Updates Post Snippets admin screen to not let Chrome XSS Auditor preventing
387 snippets containg form elements to be saved.
388 * Adds Serbo-Croatian translation.
389 * Updated Polish translation.
390
391 = Version 2.3.2 - 5 Aug 2013 =
392 * Updates insert snippets into the editor to be compatible with jQuery 1.9+
393 (which makes it compatible with WordPress 3.6).
394 * Changes WP version check to comply with WordPress 3.3 as the minimum required
395 version.
396
397 = Version 2.3.1 - 1 Jun 2013 =
398 * Removes the `$isArray` argument from `PostSnippets::getSnippet()` as it was
399 not needed.
400
401 = Version 2.3 - 1 Jun 2013 =
402 * Updates `PostSnippets::getSnippet($name, $variables)` to be able
403 to accept an array with variables and not only a querystring. Fixes
404 [issue #22](https://github.com/GreenTreeLabs/post-snippets/issues/22).
405 * Removes `get_post_snippet()` which was deprecated in version 2.1.
406 * Adds POST_SNIPPETS_DISABLE_PHP constant to easy disable the PHP code
407 execution in snippets. Add
408 `define('POST_SNIPPETS_DISABLE_PHP', true);`
409 to wp-config.php or the theme's functions.php to disable PHP execution in the
410 plugin.
411
412 = Version 2.2.3 - 11 May 2013 =
413 * Fixes issue with the QuickTag button not being displayed in Firefox.
414
415 = Version 2.2.2 - 10 May 2013 =
416 * The Post Snippets buttons now works everywhere there is a wp_editor present
417 and not only on post/page edit screens.
418
419 = Version 2.2.1 - 1 May 2013 =
420 * Added an option to give users with `edit_posts` capability access to the
421 Post Snippets Admin. Add
422 `define('POST_SNIPPETS_ALLOW_EDIT_POSTS', true);`
423 to wp-config.php to enable access for those users. Fixes
424 [issue #12](https://github.com/GreenTreeLabs/post-snippets/issues/12).
425 * Optimizes code for the admin section.
426
427 = Version 2.2 - 26 Apr 2013 =
428 * Bumps required WordPress version to v3.3.
429 * Fixes a problem with using some HTML entities in snippets.
430 * Removes the screenshots from the plugin archive, to make a smaller archive.
431 * Updates help text for `PostSnippets::getSnippet()`.
432 * Fixes a PHP warning that occurred when no post snippets exist.
433 * Makes the plugin PSR-2 compliant and introduces Travis CI for testing.
434
435 = Version 2.1.1 - 23 Feb 2013 =
436 * Fixes a bug that PHP snippets called an old class definition.
437
438 = Version 2.1 - 22 Feb 2013 =
439 * Default values are now respected as shortcode defaults and not only to
440 populate the insert window's fields.
441 * Allow other plugins or themes to disable the PHP Code execution feature using
442 the new `post_snippets_php_execution_enabled` filter.
443 * `PostSnippets::getSnippet()` now executes shortcodes within snippets.
444 * The function `get_post_snippet()` used to retrieve snippets from other
445 places in WordPress has been deprecated. Please update any code using this
446 function to use `PostSnippets::getSnippet()` instead, which replaces the old
447 function. `get_post_snippet()` will be removed in a future version. Most
448 users are not affected by this change.
449 * Refactored code to comply with the PSR-0 standard.
450 * Migrated to GitHub to maintain the code in development.
451 [Post Snippets at GitHub](https://github.com/GreenTreeLabs/post-snippets).
452 * Included Polish translation (pl_PL) by Tomasz Wesołowski.
453 * Included Slovak translation (sk_SK) by Branco Radenovich.
454
455 = Version 2.0 - 29 Mar 2012 =
456 * Added tabs to the Admin page, and moved Import/Export to a separate tab.
457 * Pressing enter in a text field now defaults to Update and not Add.
458 * Fixed debug notice message displayed when deleting without any snippets
459 selected.
460 * Various code refactoring and optimizations.
461
462 = Version 1.9.7 - 22 Mar 2012 =
463 * Updated the styling for the snippet insert window in the post editor. This
464 fixes the visual glitch with tabs spanning multiple rows.
465 * Users without `manage_options` but with `edit_posts` capability (authors,
466 contributors, editors) can now see a read-only list of available snippets and
467 related info.
468 * Users with read-only access can toggle if they want to see their snippets
469 overview as rendered output or as-is.
470 * Enabled `label for=` with checkboxes.
471 * Included Romanian translation by Web Hosting Geeks.
472
473 = Version 1.9.6 - 19 Mar 2012 =
474 * Added two new filters. `post_snippets_import` and `post_snippets_export`.
475
476 = Version 1.9.5 - 17 Mar 2012 =
477 * The HTML and scripts for the popup window in the post editor is now only
478 generated on the screens where it's needed.
479
480 = Version 1.9.4 - 8 Feb 2012 =
481 * Added an option to run shortcodes through wptexturize before output.
482 * Bugfix: Default values could be cut off. Corrected in this update.
483
484 = Version 1.9.3 - 30 Jan 2012 =
485 * Fixed a bug that variables using a default value wasn't inserted properly.
486
487 = Version 1.9.2 - 29 Jan 2012 =
488 * A variable can now be assigned a default value that will be used in the
489 insert window. Use the = sign to give a variable a default value. Ie.
490 var1,var2=default,var3.
491 * Added versioning to the admin jQuery dialog CSS and the TinyMCE plugin
492 JavaScript to prevent browser caching of older versions on update.
493
494 = Version 1.9.1 - 22 Jan 2012 =
495 * Updated the built-in help text to include all the latest features added.
496
497 = Version 1.9 - 17 Jan 2012 =
498 * Initial implementation to allow snippets to be evaluated as PHP code.
499 * PHP version 5.2.4 or greater is now required to run Post Snippets.
500
501 = Version 1.8.9.2 - 15 Jan 2012 =
502 * Added an additional check to see if Post Snippets is loaded via a
503 bootstrapped WP Admin that doesn't set the is_admin() flag, so it works in
504 that environment as well.
505
506 = Version 1.8.9.1 - 11 Jan 2012 =
507 * A bug fixed with get_post_snippets() that were introduced in the last update.
508 * Unit test for get_post_snippets() added to automate testing that it won't
509 break in future updates.
510
511 = Version 1.8.9 - 10 Jan 2012 =
512 * Updated the help text to take advantage of the new Help API introduced with
513 WordPress 3.3.
514 * Updated the Swedish translation.
515
516 = Version 1.8.8 - 28 Dec 2011 =
517 * Removed the unneeded QuickTag checkbox from the settings screen for snippets,
518 as all snippets are now always available from the HTML editor's QuickTag
519 button.
520
521 = Version 1.8.7 - 25 Dec 2011 =
522 * Updated the TinyMCE plugin for the Post Snippets button in WordPress Visual
523 Editor to use the same jQuery UI Dialog window that the HTML button have had
524 for some time. The consolidation of using the same window and code for the
525 different buttons will make Post Snippets easier to maintain and update.
526 * Added an admin notice when running on PHP versions below 5.2.4 to prepare
527 users that future Post Snippets requirements will be on par with WordPress
528 3.3.
529
530 = Version 1.8.6 - 15 Dec 2011 =
531 * The Post Snippets HTML editor button is updated to be compatible with
532 WordPress 3.3 refactored QuickTags.
533
534 = Version 1.8.5 - 22 Nov 2011 =
535 * Included German translation by Brian Flores.
536 * For all translators: Updated the .pot file to include all the latest strings
537 and changes.
538
539 = Version 1.8.4 - 10 Nov 2011 =
540 * Included Belarusian translation by Alexander Ovsov.
541
542 = Version 1.8.3 - 13 Oct 2011 =
543 * Included Hebrew translation by Sagive.
544
545 = Version 1.8.2 - 3 Sep 2011 =
546 * Added support for using enclosed shortcodes with the snippets. Use the
547 variable {content} in your snippets to retrieve the enclosed content.
548 * Updated the dropdown help text.
549 * Included Lithuanian translation by Nata Strazda.
550
551 = Version 1.8.1 - 11 Jul 2011 =
552 * Fixed that a PHP warning is thrown when other scripts called the
553 get_post_snippet() function without supplying a second argument.
554
555 = Version 1.8 - 30 May 2011 =
556 * Fixed an escaping problem with the snippet description.
557 * Added Import / Export functionality.
558 * Snippets used as shortcodes can now nest other shortcodes in them.
559
560 = Version 1.7.3 - 3 Mar 2011 =
561 * Added a text area field in the settings panel to enter an optional
562 description for each snippet. This decription is displayed for the editor
563 writing a post in the jQuery Post Snippet dialog.
564 * Fixed the styling of the quicktag jQuery window when the user have disabled
565 the visual editor completely.
566 * Fixed problem with line formatting in the new quicktag snippets.
567 * Fixed a problem with JavaScript snippets breaking the admin page.
568 * Various small bugfixes.
569
570 = Version 1.7.2 - 28 Feb 2011 =
571 * Specified text/javascript for the UI dialog script.
572 * Updated the Spanish translation by Melvis E. Leon Lopez.
573
574 = Version 1.7.1 - 26 Feb 2011 =
575 * Added styling to the Tabs in the Quicktag jQuery dialog window to make them
576 more "tab-like".
577 * Added the possibility to use a description for each snippet to display for
578 the user when opening the Quicktag jQuery dialog window. Snippets without
579 description and variables, has a default information message.
580 * Moved the help text from below the snippets to the contextual help dropdown
581 menu at the top of the settings page.
582 * **Changed the required version of WordPress to 3.0**.
583 * Request by proximity2008: A snippet without anything entered in the snippet
584 field will not be registered as a shortcode.
585
586 = Version 1.7 - 26 Feb 2011 =
587 * Complete rewrite of the QuickTags insert functionality. It now uses jQuery UI
588 to display a similar tabbed window as the TinyMCE button does. There is now
589 one 'Post Snippets' button in the HTML editor instead of a separate button
590 for each snippet. As the QuickTags function is completely rewritten, and this
591 is the initial release of the new method, please report if you encounter any
592 problems with it.
593 * Fixed QuickTags compability with WordPress 3.1.
594 * Added a link to the Post Snippets Settings directly from the entry on the
595 'Plugins List' page.
596 * Added get_post_snippet() function to retrieve snippets directly from PHP.
597
598 = Version 1.5.4 - 26 Jan 2011 =
599 * Included Turkish translation by Ersan Özdil.
600
601 = Version 1.5.3 - 19 Sep 2010 =
602 * Included Spanish translation by Melvis E. Leon Lopez.
603
604 = Version 1.5.2 - 17 Sep 2010 =
605 * The plugin now keeps linefeed formatting when inserting a snippet directly
606 with a quicktag in the HTML editor.
607 * Updated the code to not generate warnings when running WordPress in debug
608 mode.
609
610 = Version 1.5.1 - 12 Mar 2010 =
611 * Fixed ampersands when used in a shortcode, so they are XHTML valid.
612
613 = Version 1.5 - 12 Jan 2010 =
614 * Updated the plugin so it works with WordPress 2.9.x (the quicktags didn't
615 work in 2.9, now fixed.).
616
617 = Version 1.4.9.1 - 5 Sep 2009 =
618 * Included French translation by Thomas Cailhe (Oyabi).
619
620 = Version 1.4.9 - 10 Aug 2009 =
621 * Included Russian translation by FatCow.
622
623 = Version 1.4.8 - 9 May 2009 =
624 * Changed the handling of the TinyMCE button as some server configurations had
625 problems finding the correct path.
626 * Fixed a problem that didn't let a snippet contain a </script> tag.
627
628 = Version 1.4.7 - 27 Apr 2009 =
629 * Added a workaround for a bug in WordPress 2.7.x wp-includes/compat.php that
630 prevented the plugin to work correctly on webservers running with PHP below
631 version 5.1.0 together with WP 2.7.x. This bug is patched in WordPress 2.8.
632
633 = Version 1.4.6 - 25 Apr 2009 =
634 * Updated all code to follow the WordPress Coding Standards for consistency, if
635 someone wants to modify my code.
636 * Removed the nodechangehandler from the TinyMCE js, as it didn't fill any
637 purpose.
638 * Updated the save code to remove the PHP Notice messages, if using error
639 logging on the server.
640 * Added additional proofing for the variables string.
641
642 = Version 1.4.5 - 24 Apr 2009 =
643 * Fixed a problem in the admin options that didn't allow a form with a textarea
644 to be used as a snippet.
645 * Widened the columns for SC and QT slightly in the options panel so they
646 should look a bit better on the mac.
647
648 = Version 1.4.4 - 19 Apr 2009 =
649 * Minor fix with quicktags and certain snippets that was left out in the last
650 update.
651
652 = Version 1.4.3 - 16 Apr 2009 =
653 * Fixed an escaping problem with the recently implemented shortcode function,
654 that could cause problems on certain strings.
655 * Fixed an escaping problem with the quicktag javascript, that could cause
656 problems on certain strings.
657
658 = Version 1.4.2 - 11 Apr 2009 =
659 * Fixed some additional syntax for servers where the short_open_tag
660 configuration setting is disabled.
661
662 = Version 1.4.1 - 10 Apr 2009 =
663 * Removed all short syntax commands and replaced them with the full versions so
664 the plugin also works on servers with the short_open_tag configuration
665 setting disabled.
666
667 = Version 1.4 - 10 Apr 2009 =
668 * Added a checkbox for Shortcodes (SC) in the admin panel. When checking this
669 one a dynamic shortcode will be generated and inserted instead of the
670 snippet, which allows snippets to be updated later on for all posts it's been
671 inserted into when using this option.
672 * Added a checkbox for Quicktags (QT) in the admin panel, so Quicktags are
673 optional. Speeds up loading of the post editor if you don't need the quicktag
674 support, and only use the visual editor. Defaults to off.
675
676 = Version 1.3.5 - 9 Apr 2009 =
677 * Fixed so the TinyMCE window adds a scrollbar if there is more variables for a
678 snippet than fits in the window.
679 * Fixed a bug that snippets didn't get inserted when using the visual editor in
680 fullscreen mode.
681
682 = Version 1.3 - 2 Apr 2009 =
683 * Fixed a problem with the regular expressions that prohibited variables
684 consisting of just a single number to work.
685 * Updated the Help info in the admin page to take less space.
686 * Included a check so the plugin only runs in WP 2.7 or newer.
687
688 = Version 1.2 - 1 Apr 2009 =
689 * Added support for Quicktags so the snippets can be made available in the HTML
690 editor as well.
691
692 = Version 1.1 - 24 Mar 2009 =
693 * Included Swedish translation.
694 * Added TextDomain functionality for I18n.
695
696 = Version 1.0 - 23 Mar 2009 =
697 * Initial Release
698
699 == Upgrade Notice ==
700
701 = Version 4.0.6 - 31 july 2024 =
702
703 * Added compatibility for WordPress Version 6.6.1
704
705 = Version 3.0.10 - 2 Lug 2019 =
706
707 * Updated Freemius SDK
708 * Added compatibility with PHP 7.3
709
710 = 1.9 =
711 Note that starting with this version and moving forward, at least PHP v5.2.4 is
712 required to run Post Snippets.
713
714 = 2.1 =
715 The function `get_post_snippet()` used to retrieve snippets from other places in
716 WordPress has been deprecated. Please update any code you might have modified
717 that uses this function to use `PostSnippets::getSnippet()` instead, which
718 replaces the old function. `get_post_snippet()` will be removed in a future
719 version.
720
721 Most users are not affected by this change.
722
723 = 2.2 =
724 Note that at least WordPress v3.3 are required for Post Snippets v2.2.
725
726 = 2.3 =
727 The function `get_post_snippet()` used to retrieve snippets was deprecated
728 in version 2.1. In this update it is now completely removed. Please update any
729 code you might have that uses this function to use `PostSnippets::getSnippet()` instead, which replaces the deprecated function.
730
731 Most users are not affected by this change.
732
733 = 2.3.6 =
734 The minimum required PHP version have changed from v5.2.4 to v5.3.0 with this
735 update of Post Snippets to prepare for the next major release.
736
737 Most servers should be using PHP v5.3.0 or newer by now, but if you are unsure
738 what PHP version your server is using, please check before updating to this
739 version of the plugin.
740