| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.13 Free | |
| 4 | + * @version 2.1.37 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <info@fireplugins.com> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2025 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\Shortcodes; |
| @@ -94,9 +94,9 @@ | ||
| 94 | 94 | global $wp; |
| 95 | 95 | $currentUrl = add_query_arg((isset($_SERVER['QUERY_STRING']) ? sanitize_url(wp_unslash($_SERVER['QUERY_STRING'])) : ''), '', home_url( $wp->request ) ); |
| 96 | 96 | |
| 97 | 97 | $show_forgot_password_link = isset($attributes['show_forgot_link']) && $attributes['show_forgot_link']; |
| 98 | - $redirect = isset($attributes['redirect']) ? esc_url_raw($attributes['redirect']) : $currentUrl; | |
| 98 | + $redirect = isset($attributes['redirect']) ? $attributes['redirect'] : $currentUrl; | |
| 99 | 99 | |
| 100 | 100 | $args = [ |
| 101 | 101 | 'echo' => false, |
| 102 | 102 | 'remember' => true, |
| @@ -165,23 +165,23 @@ | ||
| 165 | 165 | ); |
| 166 | 166 | |
| 167 | 167 | return wp_nav_menu( |
| 168 | 168 | [ |
| 169 | - 'menu' => sanitize_text_field($atts['menu']), | |
| 170 | - 'container' => sanitize_text_field($atts['container']), | |
| 171 | - 'container_class' => sanitize_html_class($atts['container_class']), | |
| 172 | - 'container_id' => sanitize_html_class($atts['container_id']), | |
| 173 | - 'menu_class' => sanitize_html_class($atts['menu_class']), | |
| 174 | - 'menu_id' => sanitize_html_class($atts['menu_id']), | |
| 169 | + 'menu' => $atts['menu'], | |
| 170 | + 'container' => $atts['container'], | |
| 171 | + 'container_class' => $atts['container_class'], | |
| 172 | + 'container_id' => $atts['container_id'], | |
| 173 | + 'menu_class' => $atts['menu_class'], | |
| 174 | + 'menu_id' => $atts['menu_id'], | |
| 175 | 175 | 'echo' => false, |
| 176 | - 'fallback_cb' => sanitize_text_field($atts['fallback_cb']), | |
| 177 | - 'before' => wp_kses_post($atts['before']), | |
| 178 | - 'after' => wp_kses_post($atts['after']), | |
| 179 | - 'link_before' => wp_kses_post($atts['link_before']), | |
| 180 | - 'link_after' => wp_kses_post($atts['link_after']), | |
| 181 | - 'depth' => absint($atts['depth']), | |
| 182 | - 'walker' => sanitize_text_field($atts['walker']), | |
| 183 | - 'theme_location' => sanitize_text_field($atts['theme_location']) | |
| 176 | + 'fallback_cb' => $atts['fallback_cb'], | |
| 177 | + 'before' => $atts['before'], | |
| 178 | + 'after' => $atts['after'], | |
| 179 | + 'link_before' => $atts['link_before'], | |
| 180 | + 'link_after' => $atts['link_after'], | |
| 181 | + 'depth' => $atts['depth'], | |
| 182 | + 'walker' => $atts['walker'], | |
| 183 | + 'theme_location' => $atts['theme_location'] | |
| 184 | 184 | ] |
| 185 | 185 | ); |
| 186 | 186 | } |
| 187 | 187 | |
| @@ -206,7 +206,7 @@ | ||
| 206 | 206 | { |
| 207 | 207 | return; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - return \FireBox\Core\Helpers\Embed::renderCampaign(absint($atts['id'])); | |
| 210 | + return \FireBox\Core\Helpers\Embed::renderCampaign($atts['id']); | |
| 211 | 211 | } |
| 212 | 212 | } |