PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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/FrmDashboardController.php +5 -8 6.29 → trunk View file →
@@ -70,11 +70,10 @@
70 70 *
71 71 * @return FrmDashboardHelper
72 72 */
73 73 public static function get_dashboard_helper() {
74 - $latest_available_form = FrmForm::get_latest_form();
75 - $total_payments = self::view_args_payments();
76 - $counters_value = array(
74 + $total_payments = self::view_args_payments();
75 + $counters_value = array(
77 76 'forms' => FrmForm::get_forms_count(),
78 77 'entries' => FrmEntry::get_entries_count(),
79 78 );
80 79
@@ -80,9 +79,9 @@
80 79
81 80 return new FrmDashboardHelper(
82 81 array(
83 82 'counters' => array(
84 - 'counters' => self::view_args_counters( $latest_available_form, $counters_value ),
83 + 'counters' => self::view_args_counters( FrmForm::get_latest_form(), $counters_value ),
85 84 ),
86 85 'license' => array(),
87 86 'get_free_templates' => array(),
88 87 'inbox' => self::view_args_inbox(),
@@ -358,11 +357,10 @@
358 357 *
359 358 * @return bool
360 359 */
361 360 public static function welcome_banner_has_closed() {
362 - $user_id = get_current_user_id();
363 361 $banner_closed_by_users = self::get_closed_welcome_banner_user_ids();
364 - return $banner_closed_by_users && in_array( $user_id, $banner_closed_by_users, true );
362 + return $banner_closed_by_users && in_array( get_current_user_id(), $banner_closed_by_users, true );
365 363 }
366 364
367 365 /**
368 366 * Check if is dashboard page.
@@ -380,10 +378,9 @@
380 378 *
381 379 * @return bool
382 380 */
383 381 public static function email_is_subscribed( $email ) {
384 - $subscribed_emails = self::get_subscribed_emails();
385 - return in_array( $email, $subscribed_emails, true );
382 + return in_array( $email, self::get_subscribed_emails(), true );
386 383 }
387 384
388 385 /**
389 386 * Register controller assets.