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 +15 -7 6.286.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' ) {
@@ -83,21 +81,21 @@
83 81 * @return void
84 82 */
85 83 private static function add_tracking_request() {
86 84 $settings = FrmAppHelper::get_settings();
87 -
88 85 if ( $settings->tracking ) {
89 86 return;
90 87 }
91 88
92 - $link = admin_url( 'admin.php?page=formidable-settings&t=misc_settings' );
89 + $link = admin_url( 'admin.php?page=formidable-settings&t=misc_settings' );
90 +
93 91 $message = new FrmInbox();
94 92 $message->add_message(
95 93 array(
96 94 'key' => 'usage',
97 - '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>.',
98 96 'subject' => __( 'Help Formidable improve with usage tracking', 'formidable' ),
99 - '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>',
100 98 'type' => 'feedback',
101 99 )
102 100 );
103 101 }
@@ -113,6 +111,16 @@
113 111 if ( ! FrmAppHelper::pro_is_installed() ) {
114 112 $message = new FrmInbox();
115 113 $message->dismiss( 'free_templates' );
116 114 }
115 + }
116 +
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 }