Raw HTML - Version 1.4.7

Version Description

  • Tested with WP 3.4.1
  • Fixed the Author URI (was 404).
  • Updated the plugin description. Now it also includes short usage instructions.
  • Fixed the link to the Pro version (new site).
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.7

Files changed (2) hide show
  1. raw_html.php +3 -3
  2. readme.txt +22 -10
raw_html.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
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 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.6
7
  Author: Janis Elsts
8
- Author URI: http://w-shadow.com/blog/
9
  */
10
 
11
  /*
2
  /*
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
7
  Author: Janis Elsts
8
+ Author URI: http://w-shadow.com/
9
  */
10
 
11
  /*
readme.txt CHANGED
@@ -2,33 +2,31 @@
2
  Contributors: whiteshadow
3
  Tags: posts, formatting, javascript, html, css, code, disable
4
  Requires at least: 2.8
5
- Tested up to: 3.4
6
- Stable tag: 1.4.6
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
 
10
  == Description ==
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://w-shadow.com/RawHTML/)
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
 
31
- To prevent a part of your post or page from being filtered by WordPress, wrap it in `[raw]...[/raw]` or `<!--raw-->...<!--/raw-->` tags. These two versions work exactly the same, except that the latter won't be visible to your visitors even if you deactivate Raw HTML.
32
 
33
  *Example :*
34
 
@@ -42,9 +40,11 @@ a "test"!
42
 
43
  In this case, the tags will prevent WordPress from inserting paragraph breaks between "This", "is" and "a "test"", as well as ensure that the double quotes arround "test" are not converted to typographic (curly) quotes.
44
 
 
 
45
  **Notes**
46
 
47
- Personally, I prefer the `<!--raw-->...<!--/raw-->` syntax. These tags are formed as HTML comments, which means they won't be visible to your visitors even if you deactivate the Raw HTML plugin. On the other hand. the `[raw]...[/raw]` tags would show up.
48
 
49
  == Installation ==
50
 
@@ -57,6 +57,12 @@ To install the plugin follow these steps :
57
 
58
  == Frequently Asked Questions ==
59
 
 
 
 
 
 
 
60
  = How can I set some of the "Disable xyz" tweaks to be "On" by default? =
61
 
62
  Open to the post editor and click the "Screen Options" button in the top-right part of the page. A settings panel will appear. Locate the "Raw HTML defaults" section and tick the appropriate checkboxes. Any changes you make to these settings will only affect new and edited posts.
@@ -64,6 +70,12 @@ Open to the post editor and click the "Screen Options" button in the top-right p
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
 
67
  = 1.4.6 =
68
  * Tested on WP 3.4 (final release).
69
 
2
  Contributors: whiteshadow
3
  Tags: posts, formatting, javascript, html, css, code, disable
4
  Requires at least: 2.8
5
+ Tested up to: 3.4.1
6
+ Stable tag: 1.4.7
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
 
10
  == Description ==
11
 
12
+ Lets you disable automatic formatting like smart quotes and automatic paragraph creation, and use raw HTML/JS/CSS code in your posts without WordPress messing it up.
 
 
 
 
13
 
14
  **Features**
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 new checkboxes to the "Edit Post" screen that let you disable certain WP filters on a per-post basis. This way you can :
19
 
20
  * Disable wptexturize (the function that creates smart quotes and other typographic characters).
21
  * Disable automatic paragraph creation.
22
  * Disable image smilies.
23
  * Disable convert_chars (the function that converts ampersands to HTML entities and "fixes" some Unicode characters).
24
 
25
+ The free version only supports the HTML editor. [Get the Pro version](http://rawhtmlpro.com/?utm_source=wordpress.org&utm_medium=readme_link&utm_campaign=RawHTML%20free) if you want to be able to switch between HTML and the Visual editor without WordPress messing up your content.
26
+
27
  **Usage**
28
 
29
+ To prevent a part of your post or page from being filtered by WordPress, switch to the HTML editor and wrap it in `[raw]...[/raw]` or `<!--raw-->...<!--/raw-->` tags. These two versions work exactly the same, except that the latter won't be visible to your visitors even if you deactivate Raw HTML.
30
 
31
  *Example :*
32
 
40
 
41
  In this case, the tags will prevent WordPress from inserting paragraph breaks between "This", "is" and "a "test"", as well as ensure that the double quotes arround "test" are not converted to typographic (curly) quotes.
42
 
43
+ To avoid problems, only edit posts that contain your custom code in HTML mode. If you'd like to be able to also use the Visual editor, [get the Pro version](http://rawhtmlpro.com/?utm_source=wordpress.org&utm_medium=readme_link&utm_campaign=RawHTML%20free). It will make the code betwen [raw] tags appear as a read-only placeholder when viewed in Visual mode, ensuring WordPress doesn't change it.
44
+
45
  **Notes**
46
 
47
+ Some features of Raw HTML will only work for users who have the "unfiltered_html" capability. In a normal WordPress install that includes the Editor and Administrator roles. In a Multisite install, only the Super Admin has this capability by default.
48
 
49
  == Installation ==
50
 
57
 
58
  == Frequently Asked Questions ==
59
 
60
+ = What's the difference between the free version and the Pro version? =
61
+
62
+ If you're using the free version, switching from HTML to the Visual editor can still mess up your code. The [Pro version](http://rawhtmlpro.com/?utm_source=wordpress.org&utm_medium=readme_link&utm_campaign=RawHTML%20free) fixes this.
63
+
64
+ The way it works is that it replaces `[raw]...[/raw]` code with read-only placeholders when viewed via the Visual editor, and restores the original code when you switch to HTML or when the post is displayed your readers. This allows you to switch between HTML and Visual modes without worrying your content will get mangled by WP.
65
+
66
  = How can I set some of the "Disable xyz" tweaks to be "On" by default? =
67
 
68
  Open to the post editor and click the "Screen Options" button in the top-right part of the page. A settings panel will appear. Locate the "Raw HTML defaults" section and tick the appropriate checkboxes. Any changes you make to these settings will only affect new and edited posts.
70
 
71
  == Changelog ==
72
 
73
+ = 1.4.7 =
74
+ * Tested with WP 3.4.1
75
+ * Fixed the Author URI (was 404).
76
+ * Updated the plugin description. Now it also includes short usage instructions.
77
+ * Fixed the link to the Pro version (new site).
78
+
79
  = 1.4.6 =
80
  * Tested on WP 3.4 (final release).
81