diff --git a/README.md b/README.md index 442b1d6..5de246e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Donate link:** https://www.paypal.me/BrainstormForce **Requires at least:** 4.4 **Tags:** beaver builder, page builder plugin, timed content, php based timed content -**Stable tag:** 1.0.0 +**Stable tag:** 1.0.4 **Tested up to:** 6.6 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html diff --git a/class-bb-timed-content.php b/class-bb-timed-content.php index 6fbd3ce..a9ef49a 100644 --- a/class-bb-timed-content.php +++ b/class-bb-timed-content.php @@ -62,7 +62,7 @@ function admin_notices_function() { echo '
'; /* Translators: Timed Content Module For Beaver Builder */ - echo '

' . sprintf( __( 'The Timed Content Module For Beaver Builder plugin requires Beaver Builder plugin installed & activated.', 'timed-content-for-beaver-builder' ) . '

', $url ); + echo '

' . sprintf( __( 'The Timed Content Module For Beaver Builder plugin requires Beaver Builder plugin installed & activated.', 'timed-content-for-beaver-builder' ) . '

', esc_url( $url ) ); echo '
'; } diff --git a/readme.txt b/readme.txt index 4ef90cc..26a2533 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: pratikchaskar Donate link: https://www.paypal.me/BrainstormForce Requires at least: 4.4 Tags: beaver builder, page builder plugin, timed content, php based timed content -Stable tag: 1.0.3 +Stable tag: 1.0.4 Tested up to: 6.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -70,6 +70,9 @@ Props to TLC Online f ## Changelog ## +### 1.0.4 ### +- Improvement: Improved codebase for improved security. + ### 1.0.3 ### - Improvement: Added compatibility to WordPress 6.1 diff --git a/timed-content-for-beaver-builder.php b/timed-content-for-beaver-builder.php index cac8319..56000b2 100644 --- a/timed-content-for-beaver-builder.php +++ b/timed-content-for-beaver-builder.php @@ -3,7 +3,7 @@ * Plugin Name: Timed Content for Beaver Builder * Plugin URI: https://www.brainstormforce.com/ * Description: Timed Content For Beaver builder plugin allows users to hide content after given time. - * Version: 1.0.3 + * Version: 1.0.4 * Author: Pratik Chaskar * Author URI: https://pratikchaskar.com * Text Domain: timed-content-for-beaver-builder diff --git a/timed-content-module/includes/frontend.css.php b/timed-content-module/includes/frontend.css.php index 672f016..3b9febd 100644 --- a/timed-content-module/includes/frontend.css.php +++ b/timed-content-module/includes/frontend.css.php @@ -7,7 +7,7 @@ $display = $module->is_expired( $settings ); if ( FLBuilderModel::is_builder_active() && ! $display ) { ?> - .fl-module-timed-content-module.fl-node-::before { + .fl-module-timed-content-module.fl-node-::before { content: "Click here to edit Timed Content Module"; position: relative; width: 100%; @@ -18,34 +18,34 @@ expire_content_action ) { ?> - .fl-module-timed-content-module.fl-node- { + .fl-module-timed-content-module.fl-node- { display : none; } timed_msg_font ) && 'Default' != $settings->timed_msg_font['family'] ) { ?> -.fl-node- .timed-content-message p { +.fl-node- .timed-content-message p { timed_msg_font ); ?> } .fl-node- .timed-content-message p { - color: #timed_msg_color; ?>; - font-size: timed_msg_size; ?>px; - line-height: timed_msg_line_height; ?>px; - letter-spacing: timed_msg_letter_spacing; ?>px; + color: #timed_msg_color ); ?>; + font-size: timed_msg_size ); ?>px; + line-height: timed_msg_line_height ); ?>px; + letter-spacing: timed_msg_letter_spacing ); ?>px; } timed_content_font ) && 'Default' != $settings->timed_content_font['family'] ) { ?> -.fl-node- .timed-content-wrapper { +.fl-node- .timed-content-wrapper { timed_content_font ); ?> } .fl-node- .timed-content-wrapper { - color: #timed_content_color; ?>; - font-size: timed_content_size; ?>px; - line-height: timed_content_line_height; ?>px; - letter-spacing: timed_content_letter_spacing; ?>px; + color: #timed_content_color); ?>; + font-size: timed_content_size ); ?>px; + line-height: timed_content_line_height ); ?>px; + letter-spacing: timed_content_letter_spacing ); ?>px; } diff --git a/timed-content-module/includes/frontend.php b/timed-content-module/includes/frontend.php index 79992d9..c0a9247 100644 --- a/timed-content-module/includes/frontend.php +++ b/timed-content-module/includes/frontend.php @@ -14,6 +14,6 @@ echo Timed_Content_Helper::get_timed_content( $settings ); } } elseif ( isset( $settings->expire_content_action ) && 'msg' == $settings->expire_content_action && $is_start ) { - echo '<' . $settings->timed_tag_selection . ' class="timed-content-message">' . $settings->expire_message . 'timed_tag_selection . '>'; + echo '<' . esc_attr($settings->timed_tag_selection) . ' class="timed-content-message">' . wp_kses_post( $settings->expire_message ). 'timed_tag_selection) . '>'; } diff --git a/timed-content-module/timed-content-module.php b/timed-content-module/timed-content-module.php index a9de4e1..cabd0d4 100644 --- a/timed-content-module/timed-content-module.php +++ b/timed-content-module/timed-content-module.php @@ -303,6 +303,7 @@ public function is_start( $settings ) { 'type' => 'select', 'label' => __( 'Message Tag', 'timed-content-for-beaver-builder' ), 'default' => 'h4', + 'sanitize' => array('FLBuilderUtils::esc_tags', 'h4'), 'options' => array( 'h1' => __( 'H1', 'timed-content-for-beaver-builder' ), 'h2' => __( 'H2', 'timed-content-for-beaver-builder' ),