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/Previewer.php +11 -14 3.1.7 → 3.1.14 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.7 Free
4 + * @version 3.1.14 Free
5 5 *
6 6 * @author FirePlugins <[email protected]>
7 7 * @link https://www.fireplugins.com
8 8 * @copyright Copyright © 2026 FirePlugins All Rights Reserved
@@ -91,9 +91,9 @@
91 91 {
92 92 return false;
93 93 }
94 94
95 - if (!\current_user_can('read_firebox'))
95 + if (!\current_user_can('read_firebox', $post_id))
96 96 {
97 97 return false;
98 98 }
99 99
@@ -154,9 +154,9 @@
154 154 {
155 155 return '';
156 156 }
157 157
158 - if (!current_user_can('read_firebox'))
158 + if (!current_user_can('read_firebox', $this->box_data->ID))
159 159 {
160 160 return '';
161 161 }
162 162
@@ -189,19 +189,16 @@
189 189
190 190 $content = '<div style="padding: 15px; background: #ededed;">';
191 191 $content .= '<p>';
192 192 $content .= esc_html(firebox()->_('FB_FIREBOX_PREVIEW_DESC'));
193 - if (!empty($links))
194 - {
195 - $content .= '<br>';
196 - foreach ($links as $key => $link)
197 - {
198 - $content .= '<a href="' . esc_url($link['url']) . '">' . esc_html($link['text']) . '</a>';
199 - $l = array_keys($links);
200 - if (end($l) !== $key)
201 - {
202 - $content .= ' <span style="display:inline-block;margin:0 6px;opacity: 0.5">|</span> ';
203 - }
193 + $content .= '<br>';
194 + foreach ($links as $key => $link)
195 + {
196 + $content .= '<a href="' . esc_url($link['url']) . '">' . esc_html($link['text']) . '</a>';
197 + $l = array_keys($links);
198 + if (end($l) !== $key)
199 + {
200 + $content .= ' <span style="display:inline-block;margin:0 6px;opacity: 0.5">|</span> ';
204 201 }
205 202 }
206 203 $content .= '</p>';
207 204 $content .= '</div>';