Version Description
- Fixed a new conflict with WP-Syntax 1.0.
- Tested with WP 3.5.1 and WP 3.6-beta1.
Download this release
Release Info
Developer | whiteshadow |
Plugin | Raw HTML |
Version | 1.4.9 |
Comparing to | |
See all releases |
Code changes from version 1.4.8 to 1.4.9
- include/tag-handler.php +5 -1
- raw_html.php +1 -1
- readme.txt +6 -2
include/tag-handler.php
CHANGED
@@ -112,6 +112,10 @@ function wsh_setup_content_filters() {
|
|
112 |
//priority, WP-Syntax will see the wrong content when it runs its own content substitution hook.
|
113 |
//We adapt to that by running our callback slightly earlier than WP-Syntax's.
|
114 |
$wp_syntax_priority = has_filter('the_content', 'wp_syntax_after_filter');
|
|
|
|
|
|
|
|
|
115 |
if ( $wp_syntax_priority !== false ) {
|
116 |
$rawhtml_priority = $wp_syntax_priority - 1;
|
117 |
} else {
|
@@ -119,7 +123,7 @@ function wsh_setup_content_filters() {
|
|
119 |
}
|
120 |
add_filter('the_content', 'wsh_insert_exclusions', $rawhtml_priority);
|
121 |
}
|
122 |
-
add_action('plugins_loaded', 'wsh_setup_content_filters');
|
123 |
|
124 |
/*
|
125 |
* WordPress can also mangle code when initializing the post/page editor.
|
112 |
//priority, WP-Syntax will see the wrong content when it runs its own content substitution hook.
|
113 |
//We adapt to that by running our callback slightly earlier than WP-Syntax's.
|
114 |
$wp_syntax_priority = has_filter('the_content', 'wp_syntax_after_filter');
|
115 |
+
if ( $wp_syntax_priority === false && class_exists('WP_Syntax') ) {
|
116 |
+
//Newer versions of WP-Syntax use a class with static methods instead of plain functions.
|
117 |
+
$wp_syntax_priority = has_filter('the_content', array('WP_Syntax', 'afterFilter'));
|
118 |
+
}
|
119 |
if ( $wp_syntax_priority !== false ) {
|
120 |
$rawhtml_priority = $wp_syntax_priority - 1;
|
121 |
} else {
|
123 |
}
|
124 |
add_filter('the_content', 'wsh_insert_exclusions', $rawhtml_priority);
|
125 |
}
|
126 |
+
add_action('plugins_loaded', 'wsh_setup_content_filters', 11);
|
127 |
|
128 |
/*
|
129 |
* WordPress can also mangle code when initializing the post/page editor.
|
raw_html.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Raw HTML
|
4 |
Plugin URI: http://w-shadow.com/blog/2007/12/13/raw-html-in-wordpress/
|
5 |
Description: Lets you enter any HTML/JS/CSS in your posts without WP changing it, as well as disable automatic formatting on a per-post basis. <strong>Usage:</strong> Wrap your code in [raw]...[/raw] tags. To avoid problems, only edit posts that contain raw code in HTML mode. <strong><a href="http://rawhtmlpro.com/?utm_source=RawHTML%20free&utm_medium=plugin_description&utm_campaign=Plugins">Upgrade to Pro</a></strong> to be able to use Visual editor on the same posts without it messing up the code.
|
6 |
-
Version: 1.4.
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/
|
9 |
*/
|
3 |
Plugin Name: Raw HTML
|
4 |
Plugin URI: http://w-shadow.com/blog/2007/12/13/raw-html-in-wordpress/
|
5 |
Description: Lets you enter any HTML/JS/CSS in your posts without WP changing it, as well as disable automatic formatting on a per-post basis. <strong>Usage:</strong> Wrap your code in [raw]...[/raw] tags. To avoid problems, only edit posts that contain raw code in HTML mode. <strong><a href="http://rawhtmlpro.com/?utm_source=RawHTML%20free&utm_medium=plugin_description&utm_campaign=Plugins">Upgrade to Pro</a></strong> to be able to use Visual editor on the same posts without it messing up the code.
|
6 |
+
Version: 1.4.9
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: whiteshadow
|
3 |
Tags: posts, formatting, javascript, html, css, code, disable
|
4 |
Requires at least: 2.8
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 1.4.
|
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 |
|
@@ -70,6 +70,10 @@ Open to the post editor and click the "Screen Options" button in the top-right p
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
|
|
|
|
|
|
|
|
73 |
= 1.4.8 =
|
74 |
* Fixed a conflict with WP-Syntax.
|
75 |
* Fixed: Prevent WordPress from wrapping each [raw]...[/raw] block in a paragraph. Doesn't affect inline [raw] blocks.
|
2 |
Contributors: whiteshadow
|
3 |
Tags: posts, formatting, javascript, html, css, code, disable
|
4 |
Requires at least: 2.8
|
5 |
+
Tested up to: 3.6-beta1
|
6 |
+
Stable tag: 1.4.9
|
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 |
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 1.4.9 =
|
74 |
+
* Fixed a new conflict with WP-Syntax 1.0.
|
75 |
+
* Tested with WP 3.5.1 and WP 3.6-beta1.
|
76 |
+
|
77 |
= 1.4.8 =
|
78 |
* Fixed a conflict with WP-Syntax.
|
79 |
* Fixed: Prevent WordPress from wrapping each [raw]...[/raw] block in a paragraph. Doesn't affect inline [raw] blocks.
|