Version Description
- Added: Check for PHP 7.3 or higher. Throw WordPress admin notice and abort CJT if less than PHP 7.3 to prevent site crash.
Download this release
Release Info
Developer | wipeoutmedia |
Plugin | CSS & JavaScript Toolbox |
Version | 10.1 |
Comparing to | |
See all releases |
Code changes from version 10 to 10.1
- css-js-toolbox.php +15 -2
- readme.txt +8 -12
css-js-toolbox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CSS & JavaScript Toolbox
|
4 |
Plugin URI: https://css-javascript-toolbox.com/
|
5 |
Description: Easily add CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them anywhere on your website.
|
6 |
-
Version: 10
|
7 |
Author: Wipeout Media
|
8 |
Author URI: https://css-javascript-toolbox.com
|
9 |
License:
|
@@ -376,4 +376,17 @@ if ( ! CJTPlugin::isCompatibleEnvironment() )
|
|
376 |
CJTPlugin::define( 'CJTPlugin', array( 'hookType' => CJTWordpressEvents::HOOK_FILTER ) );
|
377 |
|
378 |
// Let's Go!
|
379 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
Plugin Name: CSS & JavaScript Toolbox
|
4 |
Plugin URI: https://css-javascript-toolbox.com/
|
5 |
Description: Easily add CSS, JavaScript, HTML and PHP code to unique CJT code blocks and assign them anywhere on your website.
|
6 |
+
Version: 10.1
|
7 |
Author: Wipeout Media
|
8 |
Author URI: https://css-javascript-toolbox.com
|
9 |
License:
|
376 |
CJTPlugin::define( 'CJTPlugin', array( 'hookType' => CJTWordpressEvents::HOOK_FILTER ) );
|
377 |
|
378 |
// Let's Go!
|
379 |
+
function deprecatedPHPCheck()
|
380 |
+
{ ?>
|
381 |
+
<div class="notice notice-error">
|
382 |
+
<p><strong>CJT</strong>: CSS & JavaScript Toolbox need PHP version 7.3 or greater to operate properly. Please ask your hosting provider to update the PHP version.<br>
|
383 |
+
Current PHP Version: <strong><?php echo phpversion(); ?></strong>
|
384 |
+
</p>
|
385 |
+
</div>
|
386 |
+
<?php }
|
387 |
+
|
388 |
+
if ( version_compare( phpversion(), 7.3, '>=' ) ) {
|
389 |
+
CJTPlugin::getInstance();
|
390 |
+
} else {
|
391 |
+
add_action( 'admin_notices', 'deprecatedPHPCheck' );
|
392 |
+
}
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
=== CSS & JavaScript Toolbox ===
|
2 |
Contributors: wipeoutmedia
|
3 |
Author URL: https://css-javascript-toolbox.com
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWDWF75JHT9Q6
|
@@ -6,9 +6,9 @@ Tags: CSS, JavaScript, JS, PHP, HTML, scripts, code, snippets, header, footer, w
|
|
6 |
License: GPLv2 or later
|
7 |
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
8 |
Requires at least: 4.9 or higher
|
9 |
-
Requires PHP:
|
10 |
Tested up to: 5.5
|
11 |
-
Stable tag: 10
|
12 |
|
13 |
Add CSS, JavaScript, and even HTML and PHP to our unique code blocks, then choose exactly where you want the code to run. Supports Gutenberg.
|
14 |
|
@@ -129,6 +129,9 @@ Due to the overwhelming amount of emails we get for users requesting support for
|
|
129 |
21. See Code Block information at a glance (CJT PLUS ONLY)
|
130 |
|
131 |
== Changelog ==
|
|
|
|
|
|
|
132 |
= 10.0 =
|
133 |
* Fix: Styling fixes for WordPress version 5.5
|
134 |
* Enhancement: Updated ACE Editor to v1.4.12
|
@@ -403,12 +406,5 @@ Fix: Fatal error: 'break' not in the 'loop' or 'switch' context in /path/to/wp-c
|
|
403 |
* Launch: This is the very first release of CSS & JavaScript Toolbox
|
404 |
|
405 |
== Upgrade Notice ==
|
406 |
-
= 10.
|
407 |
-
*
|
408 |
-
* Enhancement: Updated ACE Editor to v1.4.12
|
409 |
-
* Enhancement: Improve snippet manager
|
410 |
-
* Enhancement: Add placeholder option
|
411 |
-
* Added: Option to disable auto-indent
|
412 |
-
* Added: New language modes
|
413 |
-
* Fix: Double space being converted to dot on mobile keyboards
|
414 |
-
* Fix: Backspace not working with some mobile keyboards
|
1 |
+
=== CSS & JavaScript Toolbox Plus ===
|
2 |
Contributors: wipeoutmedia
|
3 |
Author URL: https://css-javascript-toolbox.com
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWDWF75JHT9Q6
|
6 |
License: GPLv2 or later
|
7 |
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
8 |
Requires at least: 4.9 or higher
|
9 |
+
Requires PHP: 7.3 or higher
|
10 |
Tested up to: 5.5
|
11 |
+
Stable tag: 10.1
|
12 |
|
13 |
Add CSS, JavaScript, and even HTML and PHP to our unique code blocks, then choose exactly where you want the code to run. Supports Gutenberg.
|
14 |
|
129 |
21. See Code Block information at a glance (CJT PLUS ONLY)
|
130 |
|
131 |
== Changelog ==
|
132 |
+
= 10.1 =
|
133 |
+
* Added: Check for PHP 7.3 or higher. Throw WordPress admin notice and abort CJT if less than PHP 7.3 to prevent site crash.
|
134 |
+
|
135 |
= 10.0 =
|
136 |
* Fix: Styling fixes for WordPress version 5.5
|
137 |
* Enhancement: Updated ACE Editor to v1.4.12
|
406 |
* Launch: This is the very first release of CSS & JavaScript Toolbox
|
407 |
|
408 |
== Upgrade Notice ==
|
409 |
+
= 10.1 =
|
410 |
+
* Added: Check for PHP 7.3 or higher. Throw WordPress admin notice and abort CJT if less than PHP 7.3 to prevent site crash.
|
|
|
|
|
|
|
|
|
|
|
|
|
|