pauger
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Incompatible with PHP 5.6Hi @onepresto!
Just replace the line 291 in the file
wp-content/plugins/cf7-conditional-fields/wpcf7cf-options.phpfrom
$notice_id = sanitize_text_field($_POST['noticeId'] ?? '');
to$notice_id = (isset($_POST['noticeId'])) ? sanitize_text_field($_POST['noticeId']) : '';The last function (290-297) shoud be
function wpcf7cf_dismiss_notice() { $notice_id = (isset($_POST['noticeId'])) ? sanitize_text_field($_POST['noticeId']) : ''; $notice_suffix = $notice_id ? '_'.$notice_id : $notice_id; $settings = wpcf7cf_get_settings(); $settings['notice_dismissed'.$notice_suffix] = true; wpcf7cf_set_options($settings); }- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
- This reply was modified 5 years, 3 months ago by pauger.
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Incompatible with PHP 5.6Thanks for the reply.
Oh, it was not ternary but a null coalescing operator, I wrote wrong.
I also use it regularly too. 🙂- This reply was modified 5 years, 3 months ago by pauger.
Viewing 2 replies - 1 through 2 (of 2 total)