diff --git a/core/modules/class-core.php b/core/modules/class-core.php index e2e1746..0a5cdd5 100644 --- a/core/modules/class-core.php +++ b/core/modules/class-core.php @@ -287,7 +287,7 @@ public function update_option_hook( $option, $old_value, $value ) { $service = Services\Options::get_instance(); $options = $service->get_defaults_array( '', true ); - if ( is_string( $option ) && strpos( $option, 'helpful_customizer' ) !== false ) { + if ( strpos( $option, 'helpful_customizer' ) !== false ) { $service->update_option( $option, $value ); } else if ( in_array( $option, $options, true )) { $service->update_option( $option, $value ); diff --git a/core/services/class-options.php b/core/services/class-options.php index a08ab5d..eccf95f 100644 --- a/core/services/class-options.php +++ b/core/services/class-options.php @@ -131,6 +131,11 @@ public function get_option( $name, $default = false, $security = 'blank' ) { $option = $this->handle_security( $option, $security ); } + // apostroph fix + if ( is_string( $option ) ) { + $option = stripslashes( $option ); + } + return ( $option ) ? $option : $default; } diff --git a/helpful.php b/helpful.php index b4f226c..0292faf 100644 --- a/helpful.php +++ b/helpful.php @@ -2,7 +2,7 @@ /** * Plugin Name: Helpful * Description: Add a fancy feedback form under your posts or post-types and ask your visitors a question. Give them the abbility to vote with yes or no. - * Version: 4.5.24 + * Version: 4.5.25 * Author: Pixelbart * Author URI: https://pixelbart.de * Text Domain: helpful diff --git a/readme.txt b/readme.txt index 7bf9fef..8a56b63 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: helpful, poll, feedback, reviews, vote, review, voting Requires at least: 4.6 Tested up to: 6.0 Requires PHP: 5.6.20 -Stable tag: 4.5.24 +Stable tag: 4.5.25 License: MIT License License URI: https://opensource.org/licenses/MIT