Post Snippets - Version 1.8.1

Version Description

Download this release

Release Info

Developer artstorm
Plugin Icon 128x128 Post Snippets
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8 to 1.8.1

Files changed (2) hide show
  1. post-snippets.php +2 -2
  2. readme.txt +8 -4
post-snippets.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
- Version: 1.8
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: post-snippets
@@ -689,7 +689,7 @@ add_action( 'plugins_loaded', create_function( '', 'global $post_snippets; $post
689
  * @param string $snippet_vars The variables to pass to the snippet, formatted as a query string.
690
  * @returns string The Snippet
691
  */
692
- function get_post_snippet( $snippet_name, $snippet_vars ) {
693
  global $post_snippets;
694
  $snippets = get_option($post_snippets -> plugin_options);
695
  for ($i = 0; $i < count($snippets); $i++) {
3
  Plugin Name: Post Snippets
4
  Plugin URI: http://wpstorm.net/wordpress-plugins/post-snippets/
5
  Description: Stores snippets of HTML code or reoccurring text that you often use in your posts. You can use predefined variables to replace parts of the snippet on insert. All snippets are available in the post editor with a TinyMCE button or Quicktags.
6
+ Version: 1.8.1
7
  Author: Johan Steen
8
  Author URI: http://wpstorm.net/
9
  Text Domain: post-snippets
689
  * @param string $snippet_vars The variables to pass to the snippet, formatted as a query string.
690
  * @returns string The Snippet
691
  */
692
+ function get_post_snippet( $snippet_name, $snippet_vars = '' ) {
693
  global $post_snippets;
694
  $snippets = get_option($post_snippets -> plugin_options);
695
  for ($i = 0; $i < count($snippets); $i++) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: artstorm
3
  Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#donation
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 3.0
6
- Tested up to: 3.1.3
7
- Stable tag: 1.8
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
@@ -23,9 +23,10 @@ See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/
23
 
24
  * **Insert** All defined snippets is inserted from a button directly in the post editor.
25
  * **Shortcodes** You can use this plugin to create your own shortcodes.
26
- * **Buttons** The snippets are available in the viusal editor with a TinyMCE button and in the HTML editor with quicktag buttons.
27
  * **Admin** Easy to use administration panel where you can add, edit and remove snippets.
28
  * **Variables** Each snippet can have as many custom variables as you like, which can be used on insert.
 
29
  * **Uninstall** If you delete the plugin from your plugins panel it cleans up all data it has created in the Wordpress database.
30
 
31
 
@@ -61,6 +62,9 @@ Please visit the [Support Forum](http://wordpress.org/tags/post-snippets?forum_i
61
 
62
  == Changelog ==
63
 
 
 
 
64
  = Version 1.8 - 30 May 2011 =
65
  * Fixed an escaping problem with the snippet description.
66
  * Added Import / Export functionality.
@@ -68,7 +72,7 @@ Please visit the [Support Forum](http://wordpress.org/tags/post-snippets?forum_i
68
 
69
  = Version 1.7.3 - 3 Mar 2011 =
70
  * 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.
71
- * Fixed the syling of the quicktag jQuery window when the user have disabled the visual editor completely.
72
  * Fixed problem with line formatting in the new quicktag snippets.
73
  * Fixed a problem with JavaScript snippets breaking the admin page.
74
  * Various small bugfixes.
3
  Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#donation
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 3.0
6
+ Tested up to: 3.2
7
+ Stable tag: 1.8.1
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
23
 
24
  * **Insert** All defined snippets is inserted from a button directly in the post editor.
25
  * **Shortcodes** You can use this plugin to create your own shortcodes.
26
+ * **Buttons** The snippets are available in the viusal editor with a TinyMCE button and in the HTML editor with a quicktag button.
27
  * **Admin** Easy to use administration panel where you can add, edit and remove snippets.
28
  * **Variables** Each snippet can have as many custom variables as you like, which can be used on insert.
29
+ * **Import/Export** Snippets can be imported and exported between sites.
30
  * **Uninstall** If you delete the plugin from your plugins panel it cleans up all data it has created in the Wordpress database.
31
 
32
 
62
 
63
  == Changelog ==
64
 
65
+ = Version 1.8.1 - 11 Jul 2011 =
66
+ * Fixed that a PHP warning is thrown when other scripts called the get_post_snippet() function without supplying a second argument.
67
+
68
  = Version 1.8 - 30 May 2011 =
69
  * Fixed an escaping problem with the snippet description.
70
  * Added Import / Export functionality.
72
 
73
  = Version 1.7.3 - 3 Mar 2011 =
74
  * 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.
75
+ * Fixed the styling of the quicktag jQuery window when the user have disabled the visual editor completely.
76
  * Fixed problem with line formatting in the new quicktag snippets.
77
  * Fixed a problem with JavaScript snippets breaking the admin page.
78
  * Various small bugfixes.