PluginProbe
CSS & JavaScript Toolbox / 10
CSS & JavaScript Toolbox v10
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | css-js-toolbox.php +5 -43 1210 View file →
@@ -2,11 +2,10 @@
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: 12.0
6 +Version: 10
7 7 Author: Wipeout Media
8 -Stable tag: 12.0
9 8 Author URI: https://css-javascript-toolbox.com
10 9 License:
11 10
12 11 The Software is package as a WordPress¨ plugin. The PHP code associated with the Software is licensed under the GPL version 2.0 license (as found at http://www.gnu.org/licenses/gpl-2.0.txt GNU/GPLv2 or "GPLv2"). You may redistribute, repackage, and modify the PHP code as you see fit and as consistent with GPLv2.
@@ -81,9 +80,9 @@
81 80
82 81 /**
83 82 *
84 83 */
85 - const DB_VERSION = '1.7';
84 + const DB_VERSION = '1.6';
86 85
87 86 /**
88 87 * put your comment there...
89 88 *
@@ -93,14 +92,14 @@
93 92
94 93 /**
95 94 *
96 95 */
97 - const FW_Version = '5.0';
96 + const FW_Version = '4.0';
98 97
99 98 /**
100 99 *
101 100 */
102 - const VERSION = '11';
101 + const VERSION = '10';
103 102
104 103 /**
105 104 *
106 105 */
@@ -376,42 +375,5 @@
376 375 // Initialize events!
377 376 CJTPlugin::define( 'CJTPlugin', array( 'hookType' => CJTWordpressEvents::HOOK_FILTER ) );
378 377
379 378 // Let's Go!
380 -function deprecatedPHPCheck()
381 -{ ?>
382 - <div class="notice notice-error">
383 - <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>
384 - Current PHP Version: <strong><?php echo phpversion(); ?></strong>
385 - </p>
386 - </div>
387 -<?php }
388 -
389 -if ( version_compare( phpversion(), 7, '>=' ) ) {
390 - CJTPlugin::getInstance();
391 -} else {
392 - add_action( 'admin_notices', 'deprecatedPHPCheck' );
393 -}
394 -
395 -add_action( 'upgrader_process_complete', 'upgradeCheck',10, 2 );
396 -
397 -function upgradeCheck( $upgrader_object, $options ) {
398 - $CJTPluginPath = plugin_basename( __FILE__ );
399 -
400 - global $wpdb;
401 - $table_name = $wpdb->base_prefix.'cjtoolbox_blocks';
402 - $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );
403 - $preCheck = get_option( '__existing_cjt_user' );
404 -
405 - if ( $options['action'] == 'update' && $options['type'] == 'plugin' ) {
406 - foreach( $options['plugins'] as $each_plugin ) {
407 - if ( $each_plugin == $CJTPluginPath ) {
408 - $preCheck = get_option( '__existing_cjt_user' );
409 -
410 - // Only create it once.
411 - if ( empty( $preCheck ) ) {
412 - update_option( '__existing_cjt_user', $wpdb->get_var( $query ) === $table_name ? 'true' : 'false' );
413 - }
414 - }
415 - }
416 - }
417 -}
379 +CJTPlugin::getInstance();