Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Cookie banner text not changed #4

Open
jrswebdesign opened this issue Aug 1, 2021 · 1 comment
Open

[BUG]Cookie banner text not changed #4

jrswebdesign opened this issue Aug 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jrswebdesign
Copy link

Describe the bug
Cookie banner text can not be changed

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'the cookie banner plugin'
  2. Click on 'the field for the cookie banner field text'
  3. Click save
  4. After refresh it is still the same

Expected behavior
A change in the text of the cookiebanner.

Desktop (please complete the following information):

  • OS: Latest MacOS
  • Browser Latest chrome
@jrswebdesign jrswebdesign added the bug Something isn't working label Aug 1, 2021
@BrunoIvanAmadori
Copy link

Hey! currently I don't have time to close the pull request, but I found that the problem is in the file "class-wp-sprucejoy-admin-tab-options.php" in the line 178.

It says:
update_option('wpsprucejoy_message', ( isset( $_POST['wpsprucejoy_enable_cwpsprucejoy_messageookie_bar'] ) ) ? sanitize_text_field( $_POST[ 'wpsprucejoy_message' ] ) : '');

But it should say...
update_option('wpsprucejoy_message', (isset($_POST['wpsprucejoy_message'])) ? sanitize_text_field($_POST['wpsprucejoy_message']) : '');

After changing this, the update works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants