Raw HTML - Version 1.6.3

Version Description

  • Fixed a potential PHP warning about an expression being passed by reference.
  • Tested up to WordPress 5.5-alpha.
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.3

include/formatting-override.php CHANGED
@@ -67,7 +67,7 @@ function rawhtml_add_conditional_filters($param = null){
67
  foreach ( $functions as $func => $priority ){
68
  if ( remove_filter($tag, $func, $priority) ){
69
  add_filter( $tag, 'maybe_'.$func, $priority );
70
- };
71
  }
72
  }
73
 
@@ -269,7 +269,7 @@ function rawhtml_save_postdata($post_id) {
269
  $new_settings[$field] = true;
270
  } else {
271
  $new_settings[$field] = false;
272
- };
273
  }
274
  rawhtml_save_post_settings($post_id, $new_settings);
275
 
67
  foreach ( $functions as $func => $priority ){
68
  if ( remove_filter($tag, $func, $priority) ){
69
  add_filter( $tag, 'maybe_'.$func, $priority );
70
+ }
71
  }
72
  }
73
 
269
  $new_settings[$field] = true;
270
  } else {
271
  $new_settings[$field] = false;
272
+ }
273
  }
274
  rawhtml_save_post_settings($post_id, $new_settings);
275
 
include/screen-options/screen-options.php CHANGED
@@ -187,7 +187,8 @@ class wsScreenOptions14 {
187
  }
188
 
189
  //The 'action' argument is in the form "save_settings-panel_id"
190
- $id = end(explode('-', $_POST['action'], 2));
 
191
 
192
  //Basic security check.
193
  check_ajax_referer('save_settings-' . $id, '_wpnonce-' . $id);
187
  }
188
 
189
  //The 'action' argument is in the form "save_settings-panel_id"
190
+ $parts = explode('-', $_POST['action'], 2);
191
+ $id = end($parts);
192
 
193
  //Basic security check.
194
  check_ajax_referer('save_settings-' . $id, '_wpnonce-' . $id);
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.6.2
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.6.3
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: 5.3
6
- Stable tag: 1.6.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
 
@@ -24,6 +24,10 @@ RawHTML will also add new checkboxes to the "Edit Post" screen that let you disa
24
 
25
  The free version only supports editing posts in the Text tab (called "HTML" in older WordPress versions). [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 Text 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 Text/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.
@@ -60,8 +64,6 @@ This will ensure that the plugin doesn't strip `[raw]` blocks from automatically
60
 
61
  **Notes**
62
 
63
- This plugin doesn't fully support the Gutenberg editor. It will only work with the classic post editor.
64
-
65
  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.
66
 
67
  == Installation ==
@@ -90,6 +92,10 @@ Open to the post editor and click the "Screen Options" button in the top-right p
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 1.6.2 =
94
  * Fixed a conflict with Jetpack that could cause the plugin to trigger a fatal error during certain cron jobs.
95
  * Tested up to WordPress 5.3.
2
  Contributors: whiteshadow
3
  Tags: posts, formatting, javascript, html, css, code, disable
4
  Requires at least: 2.8
5
+ Tested up to: 5.8.2
6
+ Stable tag: 1.6.3
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
 
24
 
25
  The free version only supports editing posts in the Text tab (called "HTML" in older WordPress versions). [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 Text and the Visual editor without WordPress messing up your content.
26
 
27
+ **Compatibility**
28
+
29
+ This plugin doesn't fully support the Gutenberg editor. As of WordPress 5.0, some Raw HTML features will only work if you use the [Classic Editor](https://wordpress.org/plugins/classic-editor/) plugin.
30
+
31
  **Usage**
32
 
33
  To prevent a part of your post or page from being filtered by WordPress, switch to the Text/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.
64
 
65
  **Notes**
66
 
 
 
67
  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.
68
 
69
  == Installation ==
92
 
93
  == Changelog ==
94
 
95
+ = 1.6.3 =
96
+ * Fixed a potential PHP warning about an expression being passed by reference.
97
+ * Tested up to WordPress 5.5-alpha.
98
+
99
  = 1.6.2 =
100
  * Fixed a conflict with Jetpack that could cause the plugin to trigger a fatal error during certain cron jobs.
101
  * Tested up to WordPress 5.3.