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/controllers/FrmAddonsController.php +11 -11 6.256.18 View file →
@@ -28,15 +28,15 @@
28 28 /**
29 29 * @since 6.15
30 30 */
31 31 public static function load_admin_hooks() {
32 - add_action( 'admin_menu', self::class . '::menu', 100 );
33 - add_filter( 'pre_set_site_transient_update_plugins', self::class . '::check_update' );
32 + add_action( 'admin_menu', __CLASS__ . '::menu', 100 );
33 + add_filter( 'pre_set_site_transient_update_plugins', __CLASS__ . '::check_update' );
34 34
35 35 if ( FrmAppHelper::is_admin_page( 'formidable-addons' ) ) {
36 36 self::$request_addon_url = 'https://connect.formidableforms.com/add-on-request/';
37 37
38 - add_action( 'admin_enqueue_scripts', self::class . '::enqueue_assets', 15 );
38 + add_action( 'admin_enqueue_scripts', __CLASS__ . '::enqueue_assets', 15 );
39 39 add_filter( 'frm_show_footer_links', '__return_false' );
40 40 }
41 41 }
42 42
@@ -142,9 +142,9 @@
142 142
143 143 if ( isset( $addons['error'] ) ) {
144 144 $api = new FrmFormApi();
145 145 $errors = $api->get_error_from_response( $addons );
146 - $license_type = $addons['error']['type'] ?? '';
146 + $license_type = isset( $addons['error']['type'] ) ? $addons['error']['type'] : '';
147 147 unset( $addons['error'] );
148 148 }
149 149
150 150 $pro = array(
@@ -414,9 +414,9 @@
414 414 $api = new FrmFormApi( $license );
415 415 $downloads = $api->get_api_info();
416 416 $pro = self::get_pro_from_addons( $downloads );
417 417
418 - return $pro['url'] ?? '';
418 + return isset( $pro['url'] ) ? $pro['url'] : '';
419 419 }
420 420
421 421 /**
422 422 * @since 4.08
@@ -452,9 +452,9 @@
452 452 * @param array $addons
453 453 * @return array
454 454 */
455 455 protected static function get_pro_from_addons( $addons ) {
456 - return $addons['93790'] ?? array();
456 + return isset( $addons['93790'] ) ? $addons['93790'] : array();
457 457 }
458 458
459 459 /**
460 460 * @since 4.06
@@ -477,9 +477,9 @@
477 477 if ( ! isset( $version_info['error'] ) ) {
478 478 return false;
479 479 }
480 480
481 - $expires = $version_info['error']['expires'] ?? 0;
481 + $expires = isset( $version_info['error']['expires'] ) ? $version_info['error']['expires'] : 0;
482 482 if ( empty( $expires ) || $expires > time() ) {
483 483 return false;
484 484 }
485 485
@@ -548,10 +548,10 @@
548 548 // don't show an update if the plugin isn't installed
549 549 continue;
550 550 }
551 551
552 - $wp_plugin = $wp_plugins[ $folder ] ?? array();
553 - $wp_version = $wp_plugin['Version'] ?? '1.0';
552 + $wp_plugin = isset( $wp_plugins[ $folder ] ) ? $wp_plugins[ $folder ] : array();
553 + $wp_version = isset( $wp_plugin['Version'] ) ? $wp_plugin['Version'] : '1.0';
554 554 $plugin->slug = explode( '/', $folder )[0];
555 555
556 556 if ( version_compare( $wp_version, $plugin->new_version, '<' ) ) {
557 557 $transient->response[ $folder ] = $plugin;
@@ -629,9 +629,9 @@
629 629 if ( empty( $plugin ) ) {
630 630 continue;
631 631 }
632 632
633 - $download_id = $plugin['id'] ?? 0;
633 + $download_id = isset( $plugin['id'] ) ? $plugin['id'] : 0;
634 634 if ( ! empty( $download_id ) && ! isset( $version_info[ $download_id ]['package'] ) ) {
635 635 // if this addon is using its own license, get the update url
636 636 $addon_info = $api->get_api_info();
637 637
@@ -973,9 +973,9 @@
973 973 if ( ! function_exists( 'request_filesystem_credentials' ) ) {
974 974 include_once ABSPATH . 'wp-admin/includes/file.php';
975 975 }
976 976
977 - // Start output buffering to catch the filesystem form if credentials are needed.
977 + // Start output bufferring to catch the filesystem form if credentials are needed.
978 978 ob_start();
979 979
980 980 $show_form = false;
981 981 $method = '';