Post Snippets - Version 1.5.1

Version Description

Download this release

Release Info

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

Code changes from version 1.5 to 1.5.1

Files changed (2) hide show
  1. post-snippets.php +5 -4
  2. readme.txt +9 -6
post-snippets.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Post Snippets
4
- Plugin URI: http://coding.cglounge.com/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.5
7
  Author: Johan Steen
8
- Author URI: http://coding.cglounge.com/
9
  Text Domain: post-snippets
10
 
11
  Copyright 2009-2010 Johan Steen (email : artstorm [at] gmail [dot] com)
@@ -95,7 +95,8 @@ class post_snippets {
95
  $newArr = compact( array_keys($shortcode_symbols) );
96
 
97
  $snippet = "'. addslashes($snippets[$i]["snippet"]) .'";
98
-
 
99
  foreach ($newArr as $key => $val) {
100
  $snippet = str_replace("{".$key."}", $val, $snippet);
101
  }
1
  <?php
2
  /*
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.5.1
7
  Author: Johan Steen
8
+ Author URI: http://wpstorm.net/
9
  Text Domain: post-snippets
10
 
11
  Copyright 2009-2010 Johan Steen (email : artstorm [at] gmail [dot] com)
95
  $newArr = compact( array_keys($shortcode_symbols) );
96
 
97
  $snippet = "'. addslashes($snippets[$i]["snippet"]) .'";
98
+ $snippet = str_replace("&", "&amp;", $snippet);
99
+
100
  foreach ($newArr as $key => $val) {
101
  $snippet = str_replace("{".$key."}", $val, $snippet);
102
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Post Snippets ===
2
  Contributors: artstorm
3
- Donate link: http://coding.cglounge.com/wordpress-plugins/post-snippets/#pintware
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 2.7
6
- Tested up to: 2.9.1
7
- Stable tag: 1.5
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
@@ -12,9 +12,9 @@ Store snippets of HTML code or reoccurring text that you often use in your posts
12
 
13
  This admin plugin 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. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet.
14
 
15
- For complete usage instructions see: [Post Snippets](http://coding.cglounge.com/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
16
 
17
- See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/) for what's new. Available [Translations](http://coding.cglounge.com/wordpress-plugins/post-snippets/#translations).
18
 
19
  = Features =
20
 
@@ -42,7 +42,7 @@ See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/
42
 
43
  == Frequently Asked Questions ==
44
 
45
- Please visit [Post Snippets' Comments](http://coding.cglounge.com/wordpress-plugins/post-snippets/#comments) for questions and answers.
46
 
47
  == Screenshots ==
48
 
@@ -52,6 +52,9 @@ Please visit [Post Snippets' Comments](http://coding.cglounge.com/wordpress-plug
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = Version 1.5 - 12 Jan 2010 =
56
  * Updated the plugin so it works with WordPress 2.9.x (the quicktags didn't work in 2.9, now fixed.).
57
 
1
  === Post Snippets ===
2
  Contributors: artstorm
3
+ Donate link: http://wpstorm.net/wordpress-plugins/post-snippets/#pintware
4
  Tags: post, admin, snippet, html, custom, page, dynamic, editor, quicktag
5
  Requires at least: 2.7
6
+ Tested up to: 2.9.2
7
+ Stable tag: 1.5.1
8
 
9
  Store snippets of HTML code or reoccurring text that you often use in your posts. Custom variables can be used.
10
 
12
 
13
  This admin plugin 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. The snippet can be inserted as defined, or as a shortcode to keep flexibility for updating the snippet.
14
 
15
+ For complete usage instructions see: [Post Snippets](http://wpstorm.net/wordpress-plugins/post-snippets/ "Complete Usage Instructions for Post Snippets")
16
 
17
+ See the [Changelog](http://wordpress.org/extend/plugins/post-snippets/changelog/) for what's new. Available [Translations](http://wpstorm.net/wordpress-plugins/post-snippets/#translations).
18
 
19
  = Features =
20
 
42
 
43
  == Frequently Asked Questions ==
44
 
45
+ Please visit [Post Snippets' Comments](http://wpstorm.net/wordpress-plugins/post-snippets/#comments) for questions and answers.
46
 
47
  == Screenshots ==
48
 
52
 
53
  == Changelog ==
54
 
55
+ = Version 1.5.1 - 12 Mar 2010 =
56
+ * Fixed ampersands when used in a shortcode, so they are XHTML valid.
57
+
58
  = Version 1.5 - 12 Jan 2010 =
59
  * Updated the plugin so it works with WordPress 2.9.x (the quicktags didn't work in 2.9, now fixed.).
60