Skip to content

Commit

Permalink
4.5.25
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelbart committed Aug 26, 2022
1 parent 1d554d5 commit 477a290
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/modules/class-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
5 changes: 5 additions & 0 deletions core/services/class-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion helpful.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 477a290

Please sign in to comment.