PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.18
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.18
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/FrmAddon.php +5 -5 6.256.18 View file →
@@ -214,11 +214,11 @@
214 214 *
215 215 * @since 2.04
216 216 */
217 217 public function get_defined_license() {
218 - $constant_name = 'FRM_' . strtoupper( $this->plugin_slug ) . '_LICENSE';
218 + $consant_name = 'FRM_' . strtoupper( $this->plugin_slug ) . '_LICENSE';
219 219
220 - return defined( $constant_name ) ? constant( $constant_name ) : false;
220 + return defined( $consant_name ) ? constant( $consant_name ) : false;
221 221 }
222 222
223 223 public function set_license( $license ) {
224 224 update_option( $this->option_name . 'key', $license );
@@ -295,9 +295,9 @@
295 295 $caps = FrmAppHelper::frm_capabilities( 'pro_only' );
296 296 $roles = get_editable_roles();
297 297 $settings = new FrmSettings();
298 298 foreach ( $caps as $cap => $cap_desc ) {
299 - $cap_roles = (array) ( $settings->$cap ?? 'administrator' );
299 + $cap_roles = (array) ( isset( $settings->$cap ) ? $settings->$cap : 'administrator' );
300 300
301 301 // Make sure administrators always have permissions.
302 302 if ( ! in_array( 'administrator', $cap_roles, true ) ) {
303 303 array_push( $cap_roles, 'administrator' );
@@ -370,9 +370,9 @@
370 370 $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
371 371 $id = sanitize_title( $plugin['Name'] ) . '-next';
372 372
373 373 echo '<tr class="plugin-update-tr active" id="' . esc_attr( $id ) . '"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message notice error inline notice-error notice-alt"><p>';
374 - FrmAppHelper::kses_echo( $message, 'a' );
374 + echo FrmAppHelper::kses( $message, 'a' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
375 375 echo '<script type="text/javascript">var d = document.getElementById("' . esc_attr( $id ) . '").previousSibling;if ( d !== null ){ d.className = d.className + " update"; }</script>';
376 376 echo '</p></div></td></tr>';
377 377 }
378 378
@@ -551,9 +551,9 @@
551 551 // If the last check was invalid, we don't need to check again.
552 552 return true;
553 553 }
554 554
555 - $checked_time = $last_checked['time'] ?? false;
555 + $checked_time = isset( $last_checked['time'] ) ? $last_checked['time'] : false;
556 556 $time_ago = gmdate( 'Y-m-d H:i:s', strtotime( '-' . $time ) );
557 557 return $checked_time && $checked_time > $time_ago;
558 558 }
559 559