PluginProbe
CSS & JavaScript Toolbox / 10.1
CSS & JavaScript Toolbox v10.1
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 +6 -31 1210.1 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.1
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 */
@@ -385,33 +384,9 @@
385 384 </p>
386 385 </div>
387 386 <?php }
388 387
389 -if ( version_compare( phpversion(), 7, '>=' ) ) {
388 +if ( version_compare( phpversion(), 7.3, '>=' ) ) {
390 389 CJTPlugin::getInstance();
391 390 } else {
392 391 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 -}
392 +}