| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: CSS & JavaScript Toolbox |
| 4 | 4 | Plugin URI: https://css-javascript-toolbox.com/ |
| 5 | 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 | |
| 6 | +Version: 11 | |
| 7 | 7 | Author: Wipeout Media |
| 8 | 8 | Author URI: https://css-javascript-toolbox.com |
| 9 | 9 | License: |
| 10 | 10 | |
| @@ -80,9 +80,9 @@ | ||
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * |
| 83 | 83 | */ |
| 84 | - const DB_VERSION = '1.6'; | |
| 84 | + const DB_VERSION = '1.7'; | |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | 87 | * put your comment there... |
| 88 | 88 | * |
| @@ -92,14 +92,14 @@ | ||
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * |
| 95 | 95 | */ |
| 96 | - const FW_Version = '4.0'; | |
| 96 | + const FW_Version = '5.0'; | |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * |
| 100 | 100 | */ |
| 101 | - const VERSION = '10'; | |
| 101 | + const VERSION = '11'; | |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | 104 | * |
| 105 | 105 | */ |
| @@ -375,5 +375,18 @@ | ||
| 375 | 375 | // Initialize events! |
| 376 | 376 | CJTPlugin::define( 'CJTPlugin', array( 'hookType' => CJTWordpressEvents::HOOK_FILTER ) ); |
| 377 | 377 | |
| 378 | 378 | // Let's Go! |
| 379 | -CJTPlugin::getInstance(); | |
| 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, '>=' ) ) { | |
| 389 | + CJTPlugin::getInstance(); | |
| 390 | +} else { | |
| 391 | + add_action( 'admin_notices', 'deprecatedPHPCheck' ); | |
| 392 | +} | |