Raw HTML - Version 1.2.2

Version Description

Download this release

Release Info

Developer whiteshadow
Plugin Icon wp plugin Raw HTML
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. raw_html.php +3 -3
  2. readme.txt +1 -1
raw_html.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Raw HTML capability
4
  Plugin URI: http://w-shadow.com/blog/2007/12/13/raw-html-in-wordpress/
5
  Description: Lets you enter raw HTML in your posts. You can also enable/disable smart quotes and other automatic formatting on a per-post basis.
6
- Version: 1.2.1
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
@@ -27,7 +27,7 @@ function wsh_extraction_callback($matches){
27
 
28
  function wsh_extract_exclusions($text){
29
  global $wsh_raw_parts;
30
- return preg_replace_callback("/(<!--\s*start_raw\s*-->|\[RAW\])(.*?)(<!--\s*end_raw\s*-->|\[\/RAW\])/Uis",
31
  "wsh_extraction_callback", $text);
32
  }
33
 
@@ -39,7 +39,7 @@ function wsh_insertion_callback($matches){
39
  function wsh_insert_exclusions($text){
40
  global $wsh_raw_parts;
41
  if(!isset($wsh_raw_parts)) return $text;
42
- return preg_replace_callback("/!RAWBLOCK(\d+)!/Uis", "wsh_insertion_callback", $text);
43
  }
44
 
45
  add_filter('the_content', 'wsh_extract_exclusions', 2);
3
  Plugin Name: Raw HTML capability
4
  Plugin URI: http://w-shadow.com/blog/2007/12/13/raw-html-in-wordpress/
5
  Description: Lets you enter raw HTML in your posts. You can also enable/disable smart quotes and other automatic formatting on a per-post basis.
6
+ Version: 1.2.2
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/blog/
9
  */
27
 
28
  function wsh_extract_exclusions($text){
29
  global $wsh_raw_parts;
30
+ return preg_replace_callback("/(<!--\s*start_raw\s*-->|\[RAW\])(.*?)(<!--\s*end_raw\s*-->|\[\/RAW\])/is",
31
  "wsh_extraction_callback", $text);
32
  }
33
 
39
  function wsh_insert_exclusions($text){
40
  global $wsh_raw_parts;
41
  if(!isset($wsh_raw_parts)) return $text;
42
+ return preg_replace_callback("/!RAWBLOCK(\d+?)!/", "wsh_insertion_callback", $text);
43
  }
44
 
45
  add_filter('the_content', 'wsh_extract_exclusions', 2);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: whiteshadow
3
  Tags: posts, formatting, javascript, html, css, code
4
  Requires at least: 2.2
5
  Tested up to: 2.7.1
6
- Stable tag: 1.2.1
7
 
8
  Lets you use raw HTML or any other code in your posts. You can also disable smart quotes and other automatic formatting on a per-post basis.
9
 
3
  Tags: posts, formatting, javascript, html, css, code
4
  Requires at least: 2.2
5
  Tested up to: 2.7.1
6
+ Stable tag: 1.2.2
7
 
8
  Lets you use raw HTML or any other code in your posts. You can also disable smart quotes and other automatic formatting on a per-post basis.
9