| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Float Menu Lite |
| 4 | - * Plugin URI: https://wow-estore.com/item/float-menu-pro/ | |
| 4 | + * Plugin URI: https://wordpress.org/plugins/float-menu/ | |
| 5 | 5 | * Description: Easily create floating menus of varying complexity |
| 6 | - * Version: 7.2.5 | |
| 6 | + * Version: 6.0.4 | |
| 7 | 7 | * Author: Wow-Company |
| 8 | 8 | * Author URI: https://wow-estore.com |
| 9 | 9 | * License: GPL-2.0+ |
| 10 | 10 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| @@ -13,14 +13,12 @@ | ||
| 13 | 13 | * Item ID: 5174 |
| 14 | 14 | * Store URI: https://wow-estore.com/ |
| 15 | 15 | * Author Email: hey@wow-company.com |
| 16 | 16 | * Plugin Menu: Float Menu Lite |
| 17 | - * Rating URI: https://wordpress.org/support/plugin/float-menu/reviews/ | |
| 17 | + * Rating URI: https://wordpress.org/support/plugin/float-menu/reviews/?filter=5#new-post | |
| 18 | 18 | * Support URI: https://wordpress.org/support/plugin/float-menu/ |
| 19 | 19 | * Item URI: https://wow-estore.com/item/float-menu-pro/ |
| 20 | - * Documentation: https://wow-estore.com/documentations/float-menu-lite/ | |
| 21 | - * Change URI: https://wordpress.org/plugins/float-menu/#developers | |
| 22 | - * Demo URI: https://demo.wow-estore.com/float-menu-pro/ | |
| 20 | + * Change URI: https://wow-estore.com/float-menu-lite-changelog/#version-6.0 | |
| 23 | 21 | * |
| 24 | 22 | * PHP version 7.4 |
| 25 | 23 | * |
| 26 | 24 | * @category Wordpress_Plugin |
| @@ -55,8 +53,9 @@ | ||
| 55 | 53 | |
| 56 | 54 | private WOWP_Admin $admin; |
| 57 | 55 | private Autoloader $autoloader; |
| 58 | 56 | private WOWP_Public $public; |
| 57 | + private WOWP_Plugin_Checker $check; | |
| 59 | 58 | |
| 60 | 59 | public static function instance(): WOWP_Plugin { |
| 61 | 60 | if ( ! isset( self::$instance ) && ! ( self::$instance instanceof self ) ) { |
| 62 | 61 | self::$instance = new self; |
| @@ -108,11 +107,10 @@ | ||
| 108 | 107 | 'menu_title' => 'Plugin Menu', |
| 109 | 108 | 'rating' => 'Rating URI', |
| 110 | 109 | 'support' => 'Support URI', |
| 111 | 110 | 'pro' => 'Item URI', |
| 112 | - 'demo' => 'Demo URI', | |
| 113 | 111 | 'change' => 'Change URI', |
| 114 | - 'docs' => 'Documentation', | |
| 112 | + | |
| 115 | 113 | ]; |
| 116 | 114 | $plugin_data = get_file_data( __FILE__, $data, false ); |
| 117 | 115 | |
| 118 | 116 | return $plugin_data[ $show ] ?? ''; |
| @@ -127,9 +125,9 @@ | ||
| 127 | 125 | private function includes(): void { |
| 128 | 126 | if ( ! class_exists( 'Wow_Company' ) ) { |
| 129 | 127 | require_once self::dir() . 'includes/class-wow-company.php'; |
| 130 | 128 | } |
| 131 | - | |
| 129 | + | |
| 132 | 130 | require_once self::dir() . 'classes/Autoloader.php'; |
| 133 | 131 | require_once self::dir() . 'admin/class-wowp-admin.php'; |
| 134 | 132 | require_once self::dir() . 'public/class-wowp-public.php'; |
| 135 | 133 | } |
| @@ -158,9 +156,8 @@ | ||
| 158 | 156 | _doing_it_wrong( __FUNCTION__, esc_attr__( 'Cheatin’ huh?', 'float-menu' ), '1.0' ); |
| 159 | 157 | } |
| 160 | 158 | |
| 161 | 159 | public function plugin_activate(): void { |
| 162 | - | |
| 163 | 160 | if ( is_plugin_active( 'float-menu-pro/float-menu-pro.php' ) ) { |
| 164 | 161 | deactivate_plugins( 'float-menu-pro/float-menu-pro.php' ); |
| 165 | 162 | } |
| 166 | 163 | |
| @@ -165,19 +162,18 @@ | ||
| 165 | 162 | } |
| 166 | 163 | |
| 167 | 164 | $columns = " |
| 168 | 165 | id mediumint(9) NOT NULL AUTO_INCREMENT, |
| 169 | - title VARCHAR(200), | |
| 170 | - param longtext, | |
| 166 | + title VARCHAR(200) DEFAULT '' NOT NULL, | |
| 167 | + param longtext DEFAULT '' NOT NULL, | |
| 171 | 168 | status boolean DEFAULT 0 NOT NULL, |
| 172 | 169 | mode boolean DEFAULT 0 NOT NULL, |
| 173 | - tag text, | |
| 170 | + tag text DEFAULT '' NOT NULL, | |
| 174 | 171 | PRIMARY KEY (id) |
| 175 | 172 | "; |
| 176 | - | |
| 177 | 173 | DBManager::create( $columns ); |
| 178 | 174 | |
| 179 | - update_site_option( self::PREFIX . '_db_version', '7.0' ); | |
| 175 | + update_site_option( self::PREFIX . '_db_version', '6.0' ); | |
| 180 | 176 | } |
| 181 | 177 | |
| 182 | 178 | /** |
| 183 | 179 | * Download the folder with languages. |
| @@ -198,5 +194,4 @@ | ||
| 198 | 194 | return WOWP_Plugin::instance(); |
| 199 | 195 | } |
| 200 | 196 | |
| 201 | 197 | wp_plugin_run(); |
| 202 | - | |