PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.19
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.19
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmAntiSpam.php +7 -20 6.36.19 View file →
@@ -106,10 +106,12 @@
106 106 // cache time can extend this. A user with a shorter cache time can remove times.
107 107 $valid_token_times_before = apply_filters(
108 108 'frm_form_token_check_before_today',
109 109 array(
110 - ( 2 * DAY_IN_SECONDS ), // Two days ago.
111 - ( 1 * DAY_IN_SECONDS ), // One day ago.
110 + // Two days ago.
111 + 2 * DAY_IN_SECONDS,
112 + // One day ago.
113 + 1 * DAY_IN_SECONDS,
112 114 )
113 115 );
114 116
115 117 // Mostly to catch edge cases like the form page loading and submitting on two different days.
@@ -116,9 +118,10 @@
116 118 // This probably won't be filtered by users too much, but they could extend it.
117 119 $valid_token_times_after = apply_filters(
118 120 'frm_form_token_check_after_today',
119 121 array(
120 - ( 45 * MINUTE_IN_SECONDS ), // Add in 45 minutes past today to catch some midnight edge cases.
122 + // Add in 45 minutes past today to catch some midnight edge cases.
123 + 45 * MINUTE_IN_SECONDS,
121 124 )
122 125 );
123 126
124 127 // Built up our valid tokens.
@@ -222,24 +225,8 @@
222 225 return $this->process_antispam_filter( true );
223 226 }
224 227
225 228 /**
226 - * @return bool True if saving a draft.
227 - */
228 - private function is_saving_a_draft() {
229 - global $frm_vars;
230 - if ( empty( $frm_vars['form_params'] ) ) {
231 - return false;
232 - }
233 - $form_params = $frm_vars['form_params'];
234 - if ( ! isset( $form_params[ $this->form_id ] ) ) {
235 - return false;
236 - }
237 - $this_form_params = $form_params[ $this->form_id ];
238 - return ! empty( $this_form_params['action'] ) && 'update' === $this_form_params['action'];
239 - }
240 -
241 - /**
242 229 * Helper to run our filter on all the responses for the antispam checks.
243 230 *
244 231 * @since 4.11
245 232 *
@@ -286,9 +273,9 @@
286 273 return '';
287 274 }
288 275
289 276 // If the user is an admin, return text with a link to support.
290 - // We add a space here to seperate the sentences, but outside of the localized
277 + // We add a space here to separate the sentences, but outside of the localized
291 278 // text to avoid it being removed.
292 279 return ' ' . sprintf(
293 280 // translators: %1$s start link, %2$s end link.
294 281 esc_html__( 'Please check out our %1$stroubleshooting guide%2$s for details on resolving this issue.', 'formidable' ),