Version Description
Download this release
Release Info
| Developer | whiteshadow |
| Plugin | |
| Version | 1.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2 to 1.2.1
- raw_html.php +10 -10
- 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
|
| 7 |
Author: Janis Elsts
|
| 8 |
Author URI: http://w-shadow.com/blog/
|
| 9 |
*/
|
|
@@ -42,7 +42,7 @@ function wsh_insert_exclusions($text){
|
|
| 42 |
return preg_replace_callback("/!RAWBLOCK(\d+)!/Uis", "wsh_insertion_callback", $text);
|
| 43 |
}
|
| 44 |
|
| 45 |
-
add_filter('the_content', 'wsh_extract_exclusions',
|
| 46 |
add_filter('the_content', 'wsh_insert_exclusions', 1001);
|
| 47 |
|
| 48 |
/*****************************************************
|
|
@@ -87,14 +87,14 @@ remove_filter('the_excerpt', 'convert_chars');
|
|
| 87 |
remove_filter('the_excerpt', 'convert_smilies');
|
| 88 |
|
| 89 |
// add our conditional filters
|
| 90 |
-
add_filter('the_content', 'maybe_wptexturize',
|
| 91 |
-
add_filter('the_content', 'maybe_wpautop',
|
| 92 |
-
add_filter('the_content', 'maybe_convert_chars',
|
| 93 |
-
add_filter('the_content', 'maybe_convert_smilies',
|
| 94 |
-
add_filter('the_excerpt', 'maybe_wptexturize',
|
| 95 |
-
add_filter('the_excerpt', 'maybe_wpautop',
|
| 96 |
-
add_filter('the_excerpt', 'maybe_convert_chars',
|
| 97 |
-
add_filter('the_excerpt', 'maybe_convert_smilies',
|
| 98 |
|
| 99 |
// Add a custom meta box for per-post settings
|
| 100 |
add_action('admin_menu', 'rawhtml_add_custom_box');
|
| 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 |
*/
|
| 42 |
return preg_replace_callback("/!RAWBLOCK(\d+)!/Uis", "wsh_insertion_callback", $text);
|
| 43 |
}
|
| 44 |
|
| 45 |
+
add_filter('the_content', 'wsh_extract_exclusions', 2);
|
| 46 |
add_filter('the_content', 'wsh_insert_exclusions', 1001);
|
| 47 |
|
| 48 |
/*****************************************************
|
| 87 |
remove_filter('the_excerpt', 'convert_smilies');
|
| 88 |
|
| 89 |
// add our conditional filters
|
| 90 |
+
add_filter('the_content', 'maybe_wptexturize', 3);
|
| 91 |
+
add_filter('the_content', 'maybe_wpautop', 3);
|
| 92 |
+
add_filter('the_content', 'maybe_convert_chars', 3);
|
| 93 |
+
add_filter('the_content', 'maybe_convert_smilies', 3);
|
| 94 |
+
add_filter('the_excerpt', 'maybe_wptexturize', 3);
|
| 95 |
+
add_filter('the_excerpt', 'maybe_wpautop', 3);
|
| 96 |
+
add_filter('the_excerpt', 'maybe_convert_chars', 3);
|
| 97 |
+
add_filter('the_excerpt', 'maybe_convert_smilies', 3);
|
| 98 |
|
| 99 |
// Add a custom meta box for per-post settings
|
| 100 |
add_action('admin_menu', 'rawhtml_add_custom_box');
|
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
|
| 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.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 |
|
