| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Hostinger Tools |
| 4 | 4 | * Plugin URI: https://hostinger.com |
| 5 | 5 | * Description: Hostinger WordPress plugin. |
| 6 | - * Version: 3.0.38 | |
| 6 | + * Version: 3.0.39 | |
| 7 | 7 | * Requires at least: 5.5 |
| 8 | 8 | * Requires PHP: 8.0 |
| 9 | 9 | * Author: Hostinger |
| 10 | 10 | * License: GPL v3 |
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | |
| 24 | 24 | defined( 'ABSPATH' ) || exit; |
| 25 | 25 | |
| 26 | 26 | if ( ! defined( 'HOSTINGER_VERSION' ) ) { |
| 27 | - define( 'HOSTINGER_VERSION', '3.0.38' ); | |
| 27 | + define( 'HOSTINGER_VERSION', '3.0.39' ); | |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ( ! defined( 'HOSTINGER_ABSPATH' ) ) { |
| 31 | 31 | define( 'HOSTINGER_ABSPATH', plugin_dir_path( __FILE__ ) ); |
| @@ -130,6 +130,8 @@ | ||
| 130 | 130 | if ( ! has_action( 'plugins_loaded', 'hostinger_load_menus' ) ) { |
| 131 | 131 | add_action( 'plugins_loaded', 'hostinger_load_menus' ); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | -$hostinger = new Hostinger(); | |
| 135 | -$hostinger->run(); | |
| 134 | +if ( class_exists( 'Hostinger\Hostinger' ) ) { | |
| 135 | + $hostinger = new Hostinger(); | |
| 136 | + $hostinger->run(); | |
| 137 | +} | |