Version Description
- Fixed a conflict with Jetpack that could cause the plugin to trigger a fatal error during certain cron jobs.
- Tested up to WordPress 5.3.
Download this release
Release Info
Developer | whiteshadow |
Plugin | Raw HTML |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- include/screen-options/screen-options.php +9 -1
- raw_html.php +1 -1
- readme.txt +6 -2
include/screen-options/screen-options.php
CHANGED
@@ -97,7 +97,15 @@ class wsScreenOptions14 {
|
|
97 |
* @return string
|
98 |
*/
|
99 |
function page_to_screen_id($page){
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
$screen = convert_to_screen($page);
|
102 |
if ( isset($screen->id) ){
|
103 |
return $screen->id;
|
97 |
* @return string
|
98 |
*/
|
99 |
function page_to_screen_id($page){
|
100 |
+
$can_use_screen_api = function_exists('convert_to_screen') && class_exists('WP_Screen', false);
|
101 |
+
|
102 |
+
//In WP 5.0 or above convert_to_screen() can indirectly call use_block_editor_for_post_type() which
|
103 |
+
//might not be available at this point if another plugin loaded the screen API directly.
|
104 |
+
if ( isset($GLOBALS['wp_version']) && version_compare($GLOBALS['wp_version'], '5.0', '>=') ) {
|
105 |
+
$can_use_screen_api = $can_use_screen_api && function_exists('use_block_editor_for_post_type');
|
106 |
+
}
|
107 |
+
|
108 |
+
if ( $can_use_screen_api ){
|
109 |
$screen = convert_to_screen($page);
|
110 |
if ( isset($screen->id) ){
|
111 |
return $screen->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.
|
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.2
|
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.
|
6 |
-
Stable tag: 1.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 |
|
@@ -90,6 +90,10 @@ Open to the post editor and click the "Screen Options" button in the top-right p
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
93 |
= 1.6.1 =
|
94 |
* Fixed a conflict with the "AMP Stories" plugin. This fix may also help with current or future conflicts with other plugins that remove the default post filters.
|
95 |
|
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 |
|
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.
|
96 |
+
|
97 |
= 1.6.1 =
|
98 |
* Fixed a conflict with the "AMP Stories" plugin. This fix may also help with current or future conflicts with other plugins that remove the default post filters.
|
99 |
|