PluginProbe
LoftLoader / 2.1.10
LoftLoader v2.1.10
trunk 1.0.0 1.0.1 1.0.2 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 All 34 releases
← All changes | loftloader.php +9 -7 2.1.82.1.10 View file →
@@ -2,9 +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.1.8
6 +Version: 2.1.10
7 7 Author: Loft Ocean
8 8 Author URI: http://www.loftocean.com/
9 9 Text Domain: loftloader
10 10 License: GPLv2
@@ -31,9 +31,9 @@
31 31 */
32 32 define( 'LOFTLOADER_ROOT', dirname( __FILE__ ) . '/' );
33 33 define( 'LOFTLOADER_NAME', plugin_basename( __FILE__ ) );
34 34 define( 'LOFTLOADER_URI', plugin_dir_url( __FILE__ ) );
35 - define( 'LOFTLOADER_ASSET_VERSION', '2019063001' );
35 + define( 'LOFTLOADER_ASSET_VERSION', '2019092302' );
36 36
37 37 class LoftLoader {
38 38 public function __construct() {
39 39 load_plugin_textdomain( 'loftloader' );
@@ -100,9 +100,9 @@
100 100
101 101 // Init loftloader lite
102 102 add_action( 'after_setup_theme', 'loftloader_init' );
103 103 function loftloader_init() {
104 - if ( ! class_exists( 'LoftLoaderPro' ) ) {
104 + if ( ! class_exists( 'LoftLoader_Pro' ) ) {
105 105 new LoftLoader();
106 106 }
107 107 }
108 108
@@ -107,11 +107,13 @@
107 107 }
108 108
109 109 add_action( 'plugins_loaded', 'loftloader_any_page' );
110 110 function loftloader_any_page() {
111 - $enable_any_page = get_option( 'loftloader_enable_any_page', '' );
112 - if ( $enable_any_page === 'on' ) {
113 - require_once LOFTLOADER_ROOT . 'inc/any-page/class-loftloader-any-page.php';
111 + if ( ! class_exists( 'LoftLoader_Pro' ) ) {
112 + $enable_any_page = get_option( 'loftloader_enable_any_page', '' );
113 + if ( $enable_any_page === 'on' ) {
114 + require_once LOFTLOADER_ROOT . 'inc/any-page/class-loftloader-any-page.php';
115 + }
114 116 }
115 117 }
116 118
117 119 // Remove widget panels
@@ -116,9 +118,9 @@
116 118
117 119 // Remove widget panels
118 120 add_filter( 'customize_loaded_components', 'loftloader_remove_widget_panels', 1000 );
119 121 function loftloader_remove_widget_panels( $components ) {
120 - if ( ! class_exists( 'LoftLoaderPro' ) && ( isset( $_GET['plugin'] ) && ( $_GET['plugin'] === 'loftloader-lite' ) ) ) {
122 + if ( ! class_exists( 'LoftLoader_Pro' ) && ( isset( $_GET['plugin'] ) && ( $_GET['plugin'] === 'loftloader-lite' ) ) ) {
121 123 foreach ( $components as $i => $c ) {
122 124 if ( false !== $i ) {
123 125 unset( $components[ $i ] );
124 126 }