PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.7.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.7.0
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Fallback/FallBack.php +3 -4 3.2.12.7.0 View file →
@@ -25,11 +25,8 @@
25 25 }
26 26
27 27 public static function action($version, $invokeable, $oldversion, $check)
28 28 {
29 - if (!version_compare($version, $oldversion, $check)) {
30 - return false;
31 - }
32 29 $namespace = 'BitCode\BitForm\Core\Fallback';
33 30 $invoke = explode('@', $invokeable);
34 31 if (is_array($invoke) && 2 === count($invoke)) {
35 32 $fileName = $invoke[0];
@@ -36,9 +33,11 @@
36 33 $method = $invoke[1];
37 34 $class = $namespace . '\\' . $fileName;
38 35 if (class_exists($class) && method_exists($class, $method)) {
39 36 $invokeMethod = new ReflectionMethod($class, $method);
40 - $invokeMethod->invoke($invokeMethod->isStatic() ? null : new $class());
37 + if (version_compare($version, $oldversion, $check)) {
38 + $invokeMethod->invoke($invokeMethod->isStatic() ? null : new $class());
39 + }
41 40 } else {
42 41 return 'Method or class not exist';
43 42 }
44 43 } else {