Version Description
- Tested on WordPress 3.2.1
- Improved the checkbox layout in the plugin's post editor widget (extra whitespace).
Download this release
Release Info
Developer | whiteshadow |
Plugin | Raw HTML |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- include/formatting-override.php +11 -7
- raw_html.php +2 -2
- readme.txt +11 -5
include/formatting-override.php
CHANGED
@@ -87,13 +87,16 @@ function rawhtml_meta_box(){
|
|
87 |
|
88 |
//Output checkboxes
|
89 |
$fields = array(
|
90 |
-
'disable_wptexturize' => 'Disable wptexturize',
|
91 |
-
'disable_wpautop' => 'Disable automatic paragraphs',
|
92 |
-
'disable_convert_chars' => 'Disable convert_chars',
|
93 |
-
'disable_convert_smilies' => 'Disable smilies',
|
94 |
);
|
95 |
$defaults = rawhtml_get_default_settings();
|
96 |
-
|
|
|
|
|
|
|
97 |
$current_setting = get_post_meta($post->ID, '_'.$field, true);
|
98 |
if ( $current_setting == '' ){
|
99 |
$current_setting = get_post_meta($post->ID, $field, true);
|
@@ -104,15 +107,16 @@ function rawhtml_meta_box(){
|
|
104 |
$current_setting = (bool)intval($current_setting);
|
105 |
}
|
106 |
?>
|
107 |
-
<label for="rawhtml_<?php echo $field; ?>">
|
108 |
<input type="checkbox" name="rawhtml_<?php echo $field; ?>" id="rawhtml_<?php echo $field; ?>" <?php
|
109 |
if ($current_setting) echo ' checked="checked"';
|
110 |
?>/>
|
111 |
<?php echo $legend; ?>
|
112 |
</label>
|
113 |
-
|
114 |
<?php
|
115 |
}
|
|
|
116 |
}
|
117 |
|
118 |
/* Saves post metadata */
|
87 |
|
88 |
//Output checkboxes
|
89 |
$fields = array(
|
90 |
+
'disable_wptexturize' => array('Disable wptexturize', 'wptexturize is responsible for smart quotes and other typographic characters'),
|
91 |
+
'disable_wpautop' => array('Disable automatic paragraphs', null),
|
92 |
+
'disable_convert_chars' => array('Disable convert_chars', 'convert_chars converts ampersand to HTML entities and "fixes" some Unicode character'),
|
93 |
+
'disable_convert_smilies' => array('Disable smilies', null),
|
94 |
);
|
95 |
$defaults = rawhtml_get_default_settings();
|
96 |
+
|
97 |
+
echo '<ul>';
|
98 |
+
foreach($fields as $field => $info){
|
99 |
+
list($legend, $title) = $info;
|
100 |
$current_setting = get_post_meta($post->ID, '_'.$field, true);
|
101 |
if ( $current_setting == '' ){
|
102 |
$current_setting = get_post_meta($post->ID, $field, true);
|
107 |
$current_setting = (bool)intval($current_setting);
|
108 |
}
|
109 |
?>
|
110 |
+
<li><label for="rawhtml_<?php echo $field; ?>" title="<?php if (!empty($title)) echo esc_attr($title); ?>">
|
111 |
<input type="checkbox" name="rawhtml_<?php echo $field; ?>" id="rawhtml_<?php echo $field; ?>" <?php
|
112 |
if ($current_setting) echo ' checked="checked"';
|
113 |
?>/>
|
114 |
<?php echo $legend; ?>
|
115 |
</label>
|
116 |
+
</li>
|
117 |
<?php
|
118 |
}
|
119 |
+
echo '</ul>';
|
120 |
}
|
121 |
|
122 |
/* Saves post metadata */
|
raw_html.php
CHANGED
@@ -2,8 +2,8 @@
|
|
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
|
6 |
-
Version: 1.4.
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
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 and disable automatic formatting on a per-post basis. <a href="http://wpplugins.com/plugin/850/raw-html-pro/">Upgrade to Pro Version</a>
|
6 |
+
Version: 1.4.2
|
7 |
Author: Janis Elsts
|
8 |
Author URI: http://w-shadow.com/blog/
|
9 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: whiteshadow
|
|
3 |
Tags: posts, formatting, javascript, html, css, code, disable
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.2.1
|
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 |
|
@@ -11,18 +11,20 @@ Lets you use raw HTML or any other code in your posts. You can also disable smar
|
|
11 |
|
12 |
Lets you disable automatic formatting like smart quotes and automatic paragraphs, and use raw HTML/JS/CSS code in your posts without WordPress messing it up.
|
13 |
|
|
|
|
|
14 |
[Upgrade to Pro version](http://wpplugins.com/plugin/850/raw-html-pro/)
|
15 |
|
|
|
|
|
16 |
With this plugin, you can wrap any part of your post in [raw]...[/raw] tags to prevent WordPress from converting newlines to HTML paragraphs, replacing apostrophes with typographic quotes and so on. This is very useful if you need to add a CSS block or JavaScript to your post.
|
17 |
|
18 |
RawHTML will also add some new checkboxes to the "Edit" screen that let you disable certain WP filters on a per-post basis. This way you can :
|
19 |
|
20 |
-
* Disable wptexturize (
|
21 |
* Disable automatic paragraph creation.
|
22 |
* Disable image smilies.
|
23 |
-
* Disable convert_chars (
|
24 |
-
|
25 |
-
Note: The free version only supports the HTML editor. Use [the premium version](http://wpplugins.com/plugin/850/raw-html-pro/) if you want to be able to switch between HTML and the Visual editor without WordPress mangling your content.
|
26 |
|
27 |
**Usage**
|
28 |
|
@@ -62,6 +64,10 @@ Open to the post editor and click the "Screen Options" button in the top-right p
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
|
|
|
|
|
|
|
|
65 |
= 1.4.1 =
|
66 |
* Tested on the latest Beta version of WordPress (3.2-beta2).
|
67 |
* Prefer `<!--raw-->...<!--/raw-->` over `<!--start_raw-->...<!--/end_raw-->`. The old syntax will continue to work, but you're encouraged to use either [raw] or `<!--raw-->` in the future as they're more internally consistent (and shorter).
|
3 |
Tags: posts, formatting, javascript, html, css, code, disable
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.2.1
|
6 |
+
Stable tag: 1.4.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 |
|
11 |
|
12 |
Lets you disable automatic formatting like smart quotes and automatic paragraphs, and use raw HTML/JS/CSS code in your posts without WordPress messing it up.
|
13 |
|
14 |
+
The free version only works with the HTML editor. Get the Pro Version if you want to be able to switch between HTML and the Visual editor without WordPress messing up your content.
|
15 |
+
|
16 |
[Upgrade to Pro version](http://wpplugins.com/plugin/850/raw-html-pro/)
|
17 |
|
18 |
+
**Features**
|
19 |
+
|
20 |
With this plugin, you can wrap any part of your post in [raw]...[/raw] tags to prevent WordPress from converting newlines to HTML paragraphs, replacing apostrophes with typographic quotes and so on. This is very useful if you need to add a CSS block or JavaScript to your post.
|
21 |
|
22 |
RawHTML will also add some new checkboxes to the "Edit" screen that let you disable certain WP filters on a per-post basis. This way you can :
|
23 |
|
24 |
+
* Disable wptexturize (the function that creates smart quotes and other typographic characters).
|
25 |
* Disable automatic paragraph creation.
|
26 |
* Disable image smilies.
|
27 |
+
* Disable convert_chars (the function that converts ampersands to HTML entities and "fixes" some Unicode characters).
|
|
|
|
|
28 |
|
29 |
**Usage**
|
30 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.4.2 =
|
68 |
+
* Tested on WordPress 3.2.1
|
69 |
+
* Improved the checkbox layout in the plugin's post editor widget (extra whitespace).
|
70 |
+
|
71 |
= 1.4.1 =
|
72 |
* Tested on the latest Beta version of WordPress (3.2-beta2).
|
73 |
* Prefer `<!--raw-->...<!--/raw-->` over `<!--start_raw-->...<!--/end_raw-->`. The old syntax will continue to work, but you're encouraged to use either [raw] or `<!--raw-->` in the future as they're more internally consistent (and shorter).
|