PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.14
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.14
3.1.14 3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 All 123 releases
← All changes | Inc/Core/FB/Assignments.php +9 -10 1.1.0 → 3.1.14 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 1.1.0 Free
4 + * @version 3.1.14 Free
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2022 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2026 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 */
11 11
12 12 namespace FireBox\Core\FB;
@@ -46,9 +46,9 @@
46 46 *
47 47 * @var array
48 48 */
49 49 private $assignments = [
50 - 'cookietype|local',
50 + 'cookietype',
51 51
52 52 ];
53 53
54 54 /**
@@ -78,9 +78,9 @@
78 78 */
79 79 public function passAll()
80 80 {
81 81 $pass = true;
82 -
82 +
83 83 foreach ($this->assignments as $key => $assignment)
84 84 {
85 85 // Break if not passed
86 86 if (!$pass)
@@ -90,9 +90,8 @@
90 90
91 91 $assignmentData = explode('|', $assignment);
92 92
93 93 $assignment = $assignmentData[0];
94 - $type = isset($assignmentData[1]) ? $assignmentData[1] : '';
95 94
96 95 $method = 'pass' . $assignment;
97 96
98 97 // Skip item if there is no assosiated method
@@ -99,22 +98,22 @@
99 98 if (!method_exists($this, $method))
100 99 {
101 100 continue;
102 101 }
103 -
104 - $prefix = empty($type) ? 'assignments.' : '';
105 102
106 - $assign = $prefix . 'assign_' . $assignment;
107 -
103 + $assign = 'assign_' . $assignment;
104 +
108 105 // Skip item if assignment is missing
109 106 if (!$this->box->params->exists($assign) && !$this->box->params->exists($assign . '_param_type'))
110 107 {
111 108 continue;
112 109 }
113 -
110 +
114 111 $pass = $this->$method();
115 112 }
113 +
116 114
115 +
117 116 return $pass;
118 117 }
119 118
120 119 /**