| @@ -2,12 +2,9 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: LoftLoader |
| 4 | 4 | Plugin URI: http://www.loftocean.com/ |
| 5 | 5 | Description: An easy to use plugin to add an animated preloader to your website with fully customisations. |
| 6 | -Version: 2.5.3 | |
| 7 | -Requires PHP: 5.6 | |
| 8 | -Requires at least: 6.0 | |
| 9 | -Tested up to: 7.0 | |
| 6 | +Version: 2.3 | |
| 10 | 7 | Author: Loft.Ocean |
| 11 | 8 | Author URI: http://www.loftocean.com/ |
| 12 | 9 | Text Domain: loftloader |
| 13 | 10 | License: GPLv2 |
| @@ -34,9 +31,9 @@ | ||
| 34 | 31 | */ |
| 35 | 32 | define( 'LOFTLOADER_ROOT', dirname( __FILE__ ) . '/' ); |
| 36 | 33 | define( 'LOFTLOADER_NAME', plugin_basename( __FILE__ ) ); |
| 37 | 34 | define( 'LOFTLOADER_URI', plugin_dir_url( __FILE__ ) ); |
| 38 | - define( 'LOFTLOADER_ASSET_VERSION', '2026051801' ); | |
| 35 | + define( 'LOFTLOADER_ASSET_VERSION', '2020072001' ); | |
| 39 | 36 | |
| 40 | 37 | class LoftLoader { |
| 41 | 38 | public function __construct() { |
| 42 | 39 | load_plugin_textdomain( 'loftloader' ); |
| @@ -141,48 +138,4 @@ | ||
| 141 | 138 | global $wp_customize; |
| 142 | 139 | return ( isset($_GET['plugin'] ) && ( $_GET['plugin'] === 'loftloader-lite') ) || ( isset( $wp_customize ) && $wp_customize->is_preview() && ! is_admin() ) || defined( 'DOING_AJAX' ); |
| 143 | 140 | } |
| 144 | 141 | } |
| 145 | - | |
| 146 | -/** | |
| 147 | - * Deletes saved data for the plugin unless setting to preserve | |
| 148 | - * settings is enabled | |
| 149 | - * | |
| 150 | - * @since 2.0 custom tables, custom images, and image directory deleted | |
| 151 | - * @since 1.0 | |
| 152 | - */ | |
| 153 | -function loftloader_plugin_uninstall() { | |
| 154 | - if ( ! current_user_can( 'activate_plugins' ) ) { | |
| 155 | - return; | |
| 156 | - } | |
| 157 | - | |
| 158 | - if ( 'on' != get_option( 'loftloader_remove_settings', '' ) ) { | |
| 159 | - return; | |
| 160 | - } | |
| 161 | - | |
| 162 | - global $wpdb; | |
| 163 | - $table_name = esc_sql( $wpdb->prefix . "postmeta" ); | |
| 164 | - $result = $wpdb->query(" | |
| 165 | - DELETE | |
| 166 | - FROM $table_name | |
| 167 | - WHERE meta_key = 'loftloader_page_shortcode';" | |
| 168 | - ); | |
| 169 | - | |
| 170 | - delete_option( 'loftloader_lite_version' ); | |
| 171 | - delete_option( 'loftloader_main_switch' ); | |
| 172 | - delete_option( 'loftloader_show_range' ); | |
| 173 | - delete_option( 'loftloader_bg_color' ); | |
| 174 | - delete_option( 'loftloader_bg_opacity' ); | |
| 175 | - delete_option( 'loftloader_bg_animation' ); | |
| 176 | - delete_option( 'loftloader_loader_type' ); | |
| 177 | - delete_option( 'loftloader_loader_color' ); | |
| 178 | - delete_option( 'loftloader_custom_img' ); | |
| 179 | - delete_option( 'loftloader_img_width' ); | |
| 180 | - delete_option( 'loftloader_show_close_timer' ); | |
| 181 | - delete_option( 'loftloader_show_close_tip' ); | |
| 182 | - delete_option( 'loftloader_max_load_time' ); | |
| 183 | - delete_option( 'loftloader_inline_js' ); | |
| 184 | - delete_option( 'loftloader_enable_any_page' ); | |
| 185 | - delete_option( 'loftloader_remove_settings' ); | |
| 186 | -} | |
| 187 | - | |
| 188 | -register_deactivation_hook( __FILE__, 'loftloader_plugin_uninstall' ); | |