PluginProbe
Visual Composer Website Builder / 45.16.4
Visual Composer Website Builder v45.16.4
45.16.4 45.16.3 45.16.2 45.16.1 45.2-beta.1 45.2-beta.2 45.2.0 45.3-beta.1 45.3.0 45.4-beta.1 45.4.0 45.4.1 45.4.1-beta.2 45.5-beta.1 45.5.0 45.6-beta.1 45.6.0 45.7-beta.1 45.7.0 45.8-beta.1 45.8.0 45.9.0 trunk 45.0 45.0-beta.1 All 42 releases
← All changes | plugin-wordpress.php +22 -8 45.0 → 45.16.4 View file →
@@ -3,16 +3,15 @@
3 3 /**
4 4 * Plugin Name: Visual Composer
5 5 * Plugin URI: https://visualcomposer.com/premium/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
6 6 * Description: Create your WordPress website with the fast and easy-to-use drag-and-drop builder for experts and beginners.
7 - * Version: 45.0
7 + * Version: 45.16.4
8 8 * Author: visualcomposer.com
9 9 * Author URI: https://visualcomposer.com/?utm_source=vcwb&utm_medium=wpplugins&utm_campaign=vcbrand&utm_content=text
10 10 * Copyright: (c) 2017 TechMill Ltd.
11 11 * License: GPLv3
12 12 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13 - * Requires at least: 4.6
14 - * Tested up to: 5.6
13 + * Requires at least: 5.5
15 14 * Text Domain: visualcomposer
16 15 * Domain Path: /languages/
17 16 */
18 17
@@ -24,8 +23,9 @@
24 23 header('HTTP/1.1 403 Forbidden');
25 24 exit;
26 25 }
27 26
27 +
28 28 /**
29 29 * Skip loading when installing.
30 30 *
31 31 * @see wp_installing
@@ -45,9 +45,9 @@
45 45
46 46 /**
47 47 * Plugin version constant
48 48 */
49 -define('VCV_VERSION', '45.0');
49 +define('VCV_VERSION', '45.16.4');
50 50 /**
51 51 * Plugin url: 'http://web/wp-content/plugins/plugin_dir/'
52 52 */
53 53 define('VCV_PLUGIN_URL', rtrim(plugin_dir_url(__FILE__), '/') . '/');
@@ -81,9 +81,9 @@
81 81 define('VCV_REQUIRED_PHP_VERSION', '5.6');
82 82 /**
83 83 * Minimal required WordPress version.
84 84 */
85 -define('VCV_REQUIRED_BLOG_VERSION', '4.6');
85 +define('VCV_REQUIRED_BLOG_VERSION', '5.5');
86 86 if (!defined('VCV_AJAX_REQUEST')) {
87 87 define('VCV_AJAX_REQUEST', 'vcv-ajax');
88 88 }
89 89 if (!defined('VCV_ADMIN_AJAX_REQUEST')) {
@@ -111,12 +111,26 @@
111 111 define('VCV_PLUGIN_ASSETS_DIR_PATH', $uploadDir['basedir'] . '/' . VCV_PLUGIN_ASSETS_DIRNAME);
112 112
113 113 require_once $dir . '/visualcomposer/Requirements.php';
114 114
115 +$errorMessages = false;
115 116 if (!defined('DOING_AJAX') || !DOING_AJAX) {
116 117 $requirements = new VcvCoreRequirements();
117 - $requirements->coreChecks();
118 + $errorMessages = $requirements->getCoreRequirementsErrorMessages();
118 119 }
120 +
119 121 // !! PHP 5.4 Required under this line (parse error otherwise).
120 122
121 -// Bootstrap the system.
122 -require $dir . '/bootstrap/autoload.php';
123 +if ($errorMessages) {
124 + add_action('admin_notices', function () use ($errorMessages) {
125 + echo wp_kses($errorMessages, [
126 + 'div' => ['class' => []],
127 + 'ul' => ['class' => []],
128 + 'li' => [],
129 + 'p' => [],
130 + 'b' => [],
131 + ]);
132 + });
133 +} else {
134 + // Bootstrap the system.
135 + require $dir . '/bootstrap/autoload.php';
136 +}