| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: WP Coder |
| 4 | 4 | * Plugin URI: https://wordpress.org/plugins/wp-coder/ |
| 5 | 5 | * Description: Adding custom HTML, CSS, JavaScript and PHP code to your WordPress site. |
| 6 | - * Version: 3.1 | |
| 6 | + * Version: 3.3 | |
| 7 | 7 | * Author: WPCoder |
| 8 | 8 | * Author URI: https://wpcoder.pro |
| 9 | 9 | * Author Email: dev@wpcoder.pro |
| 10 | 10 | * License: GPL-2.0+ |
| @@ -142,23 +142,11 @@ | ||
| 142 | 142 | _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'wpcoder' ), '1.0' ); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | public function plugin_activate(): void { |
| 146 | - $columns = " | |
| 147 | - id mediumint(9) NOT NULL AUTO_INCREMENT, | |
| 148 | - title VARCHAR(200) NOT NULL, | |
| 149 | - html_code LONGTEXT, | |
| 150 | - css_code LONGTEXT, | |
| 151 | - js_code LONGTEXT, | |
| 152 | - php_code LONGTEXT, | |
| 153 | - param LONGTEXT, | |
| 154 | - status BOOLEAN, | |
| 155 | - mode BOOLEAN, | |
| 156 | - tag TEXT, | |
| 157 | - UNIQUE KEY id (id) | |
| 158 | - "; | |
| 159 | - DBManager::create( $columns ); | |
| 146 | + DBManager::create(); | |
| 160 | 147 | FolderManager::create(); |
| 148 | + update_option( self::PREFIX . '_db_version', '3.2' ); | |
| 161 | 149 | |
| 162 | 150 | include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 163 | 151 | if ( is_plugin_active( 'wp-coder-pro/wp-coder-pro.php' ) ) { |
| 164 | 152 | deactivate_plugins( 'wp-coder-pro/wp-coder-pro.php' ); |