PluginProbe
WPIDE – File Manager & Code Editor / 3.4.1
WPIDE – File Manager & Code Editor v3.4.1
3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 3.4 All 54 releases
← All changes | wpide.php +33 -9 3.23.4.1 View file →
@@ -9,9 +9,9 @@
9 9 * @wordpress-plugin
10 10 * Plugin Name: WPIDE - File Manager & Code Editor
11 11 * Plugin URI: https://wpide.com
12 12 * Description: WordPress file manager with an advanced code editor / file editor featuring auto-completion of both WordPress and PHP functions with reference, syntax highlighting, line numbers, tabbed editing, automatic backup, image editor & much more!
13 - * Version: 3.2
13 + * Version: 3.4.1
14 14 * Author: XplodedThemes
15 15 * Author URI: https://xplodedthemes.com
16 16 * Text Domain: wpide
17 17 * Domain Path: /languages/
@@ -25,20 +25,44 @@
25 25 use WPIDE\App\Classes\Freemius;
26 26
27 27 defined( 'ABSPATH' ) || exit;
28 28
29 -define('WPIDE_FILE', __FILE__);
30 -define('WPIDE_DIR', __DIR__);
29 +$required_php_version = '7.4.0';
31 30
32 -require_once __DIR__ . '/vendor/autoload.php';
31 +if (version_compare(PHP_VERSION, $required_php_version, '<')) {
33 32
34 -if(Freemius::loaded()) {
33 + $class = 'notice notice-error';
35 34
36 - Freemius::sdk()->set_basename( false, __FILE__ );
35 + $message = sprintf(
36 + __('%s minimum PHP version requirement is %s. The current PHP version is: %s. Either update the PHP version, or use %s %s or below.', 'wpide'),
37 + '<strong>WPIDE</strong>',
38 + '<strong>v' . $required_php_version . '</strong>',
39 + '<strong>v' . PHP_VERSION . '</strong>',
40 + '<strong>WPIDE</strong>',
41 + '<strong>v2.6</strong>'
42 + );
37 43
44 + add_action('admin_notices', function () use ($message, $class) {
45 + echo sprintf('<div class="%1$s"><p>%2$s</p></div>', esc_attr($class), $message);
46 +
47 + deactivate_plugins( __FILE__ );
48 + });
49 +
38 50 }else {
39 51
40 - Freemius::init();
41 - App::instance();
42 -}
52 + define('WPIDE_FILE', __FILE__);
53 + define('WPIDE_DIR', __DIR__);
43 54
55 + global $wpide_fs;
44 56
57 + if (!empty($wpide_fs)) {
58 +
59 + $wpide_fs->set_basename(true, __FILE__);
60 +
61 + } else {
62 +
63 + require_once __DIR__ . '/vendor/autoload.php';
64 +
65 + Freemius::init();
66 + App::instance();
67 + }
68 +}