PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22.2
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/FrmInboxController.php +19 -11 6.326.22.2 View file →
@@ -14,9 +14,8 @@
14 14 * @since 4.05
15 15 * @since 6.8.4 The $filtered parameter was added.
16 16 *
17 17 * @param bool $filtered Set this to false to avoid the frm_inbox_badge filter.
18 - *
19 18 * @return string
20 19 */
21 20 public static function get_notice_count( $filtered = true ) {
22 21 FrmFormMigratorsHelper::maybe_add_to_inbox();
@@ -57,10 +56,9 @@
57 56 check_ajax_referer( 'frm_ajax', 'nonce' );
58 57 FrmAppHelper::permission_check( 'frm_view_forms' );
59 58
60 59 $key = FrmAppHelper::get_param( 'key', '', 'post', 'sanitize_text_field' );
61 -
62 - if ( $key ) {
60 + if ( ! empty( $key ) ) {
63 61 $message = new FrmInbox();
64 62 $message->dismiss( $key );
65 63
66 64 if ( $key === 'review' ) {
@@ -82,20 +80,22 @@
82 80 *
83 81 * @return void
84 82 */
85 83 private static function add_tracking_request() {
86 - if ( FrmAppHelper::get_settings()->tracking ) {
84 + $settings = FrmAppHelper::get_settings();
85 + if ( $settings->tracking ) {
87 86 return;
88 87 }
89 88
90 - $link = admin_url( 'admin.php?page=formidable-settings&t=misc_settings' );
89 + $link = admin_url( 'admin.php?page=formidable-settings&t=misc_settings' );
90 +
91 91 $message = new FrmInbox();
92 92 $message->add_message(
93 93 array(
94 94 'key' => 'usage',
95 - 'message' => 'Gathering usage data allows us to improve Formidable. Your forms will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. You can always visit the <a href="' . esc_url( $link ) . '">Global Settings</a> and choose to stop sharing data. <a href="https://formidableforms.com/knowledgebase/global-settings-overview/#kb-usage-tracking" target="_blank" rel="noopener noreferrer">Read more about what data we collect</a>.', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
95 + 'message' => 'Gathering usage data allows us to improve Formidable. Your forms will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. You can always visit the <a href="' . esc_url( $link ) . '">Global Settings</a> and choose to stop sharing data. <a href="https://formidableforms.com/knowledgebase/global-settings-overview/#kb-usage-tracking" target="_blank" rel="noopener noreferrer">Read more about what data we collect</a>.',
96 96 'subject' => __( 'Help Formidable improve with usage tracking', 'formidable' ),
97 - 'cta' => '<a href="#" class="frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary frm_inbox_dismiss">Activate usage tracking</a>', // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
97 + 'cta' => '<a href="#" class="frm-button-secondary frm_inbox_dismiss">Dismiss</a> <a href="' . esc_url( $link ) . '" class="button-primary frm-button-primary frm_inbox_dismiss">Activate usage tracking</a>',
98 98 'type' => 'feedback',
99 99 )
100 100 );
101 101 }
@@ -107,12 +107,20 @@
107 107 *
108 108 * @return void
109 109 */
110 110 private static function remove_free_template_message() {
111 - if ( FrmAppHelper::pro_is_installed() ) {
112 - return;
111 + if ( ! FrmAppHelper::pro_is_installed() ) {
112 + $message = new FrmInbox();
113 + $message->dismiss( 'free_templates' );
113 114 }
115 + }
114 116
115 - $message = new FrmInbox();
116 - $message->dismiss( 'free_templates' );
117 + /**
118 + * @since 4.06
119 + * @deprecated 6.16
120 + *
121 + * @return void
122 + */
123 + public static function dismiss_all_button( $atts ) {
124 + _deprecated_function( __METHOD__, '6.16' );
117 125 }
118 126 }