Open jrswebdesign opened 2 years ago
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.
Describe the bug Cookie banner text can not be changed
To Reproduce Steps to reproduce the behavior:
Expected behavior A change in the text of the cookiebanner.
Desktop (please complete the following information):