Raw HTML - Version 1.5.1

Version Description

  • Added limited support for the page builder included with GoodLayers themes (e.g. Mediso).
  • Tested with WP 4.8.2 and 4.9-beta1.
Download this release

Release Info

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

Code changes from version 1.5 to 1.5.1

Files changed (3) hide show
  1. include/tag-handler.php +4 -0
  2. raw_html.php +22 -1
  3. readme.txt +6 -2
include/tag-handler.php CHANGED
@@ -167,6 +167,10 @@ function wsh_setup_content_filters() {
167
  $rawhtml_priority = 1001;
168
  }
169
  add_filter('the_content', 'wsh_insert_exclusions', $rawhtml_priority);
 
 
 
 
170
  }
171
  add_action('plugins_loaded', 'wsh_setup_content_filters', 11);
172
 
167
  $rawhtml_priority = 1001;
168
  }
169
  add_filter('the_content', 'wsh_insert_exclusions', $rawhtml_priority);
170
+
171
+ //Support GoodLayers themes and their page builder.
172
+ add_filter('gdlr_the_content', 'wsh_extract_exclusions', 2);
173
+ add_filter('gdlr_the_content', 'wsh_insert_exclusions', $rawhtml_priority);
174
  }
175
  add_action('plugins_loaded', 'wsh_setup_content_filters', 11);
176
 
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.5
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/
9
  */
@@ -13,6 +13,27 @@ Created by Janis Elsts (email : whiteshadow@w-shadow.com)
13
  Licensed under the LGPL.
14
  */
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  define('RAWHTML_PLUGIN_FILE', __FILE__);
17
 
18
  require 'include/tag-handler.php';
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.5.1
7
  Author: Janis Elsts
8
  Author URI: http://w-shadow.com/
9
  */
13
  Licensed under the LGPL.
14
  */
15
 
16
+ if ( function_exists('wsh_extract_exclusions') || defined('RAWHTML_PLUGIN_FILE') ) {
17
+ function wsh_raw_html_activation_conflict() {
18
+ if ( !current_user_can('activate_plugins') ) {
19
+ return; //The current user can't do anything about the problem.
20
+ }
21
+ ?>
22
+ <div class="notice notice-error">
23
+ <p>
24
+ <strong>Warning: Another version of Raw HTML is already active.</strong><br>
25
+ Please deactivate the older version. It is not possible to run two different versions
26
+ of this plugin at the same time.
27
+ </p>
28
+ </div>
29
+ <?php
30
+ }
31
+
32
+ add_action('admin_notices', 'wsh_raw_html_activation_conflict');
33
+ return;
34
+ }
35
+
36
+
37
  define('RAWHTML_PLUGIN_FILE', __FILE__);
38
 
39
  require 'include/tag-handler.php';
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: 4.8
6
- Stable tag: 1.5
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
 
@@ -80,6 +80,10 @@ Open to the post editor and click the "Screen Options" button in the top-right p
80
 
81
  == Changelog ==
82
 
 
 
 
 
83
  = 1.5 =
84
  * Added a way to run shortcodes inside [raw] tags. To enable shortcodes, add the `shortcodes=1` attribute to the tag. Example: `[raw shortcodes=1]some code ... [my-shortcode] ... other code[/raw]`.
85
  * Fixed a conflict with Events Calendar Pro (+ Community Events add-on). This should also fix conflicts with other plugins that remove default post filters like `wpautop`.
2
  Contributors: whiteshadow
3
  Tags: posts, formatting, javascript, html, css, code, disable
4
  Requires at least: 2.8
5
+ Tested up to: 4.9
6
+ Stable tag: 1.5.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
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.5.1 =
84
+ * Added limited support for the page builder included with GoodLayers themes (e.g. Mediso).
85
+ * Tested with WP 4.8.2 and 4.9-beta1.
86
+
87
  = 1.5 =
88
  * Added a way to run shortcodes inside [raw] tags. To enable shortcodes, add the `shortcodes=1` attribute to the tag. Example: `[raw shortcodes=1]some code ... [my-shortcode] ... other code[/raw]`.
89
  * Fixed a conflict with Events Calendar Pro (+ Community Events add-on). This should also fix conflicts with other plugins that remove default post filters like `wpautop`.