PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 2.0.10
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v2.0.10
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 1.1.1 All 122 releases
← All changes | Inc/Core/Widgets/FireBoxButton.php +6 -5 1.0.22.0.10 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 1.0.2 Free
4 + * @version 2.0.10 Free
5 5 *
6 6 * @author FirePlugins <info@fireplugins.com>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2021 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2023 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\Widgets;
@@ -17,9 +17,10 @@
17 17 }
18 18
19 19 require_once FBOX_PLUGIN_DIR . 'Inc/Framework/Inc/Includes/Abstracts/FPF_Widget.php';
20 20
21 -class FireBoxButton extends \FPF_Widget {
21 +class FireBoxButton extends \FPF_Widget
22 +{
22 23 public function __construct() {
23 24 $this->widget_cssclass = '';
24 25 $this->widget_description = firebox()->_('FB_CHOOSE_BOX_TO_HANDLE');
25 26 $this->widget_id = 'firebox_add_button_widget';
@@ -100,15 +101,15 @@
100 101 $prevent_default = ' data-fbox-prevent="' . ($prevent_default ? '1' : '0') . '"';
101 102
102 103 $this->widget_start($args, $instance);
103 104 ?>
104 - <a href="<?php echo esc_url($button_link); ?>"<?php echo $box . $action . $prevent_default; ?> class="<?php echo esc_attr($button_classes); ?>"><?php echo esc_html($button_label); ?></a>
105 + <a href="<?php echo esc_url($button_link); ?>"<?php echo wp_kses_data($box . $action . $prevent_default); ?> class="<?php echo esc_attr($button_classes); ?>"><?php echo esc_html($button_label); ?></a>
105 106 <?php
106 107 $this->widget_end($args );
107 108
108 109 $content = ob_get_clean();
109 110
110 - echo $content; // WPCS: XSS ok.
111 + echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
111 112
112 113 $this->cache_widget($args, $content);
113 114 }
114 115 }