| @@ -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,9 +56,8 @@ | ||
| 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 | 60 | if ( ! empty( $key ) ) { |
| 63 | 61 | $message = new FrmInbox(); |
| 64 | 62 | $message->dismiss( $key ); |
| 65 | 63 | |
| @@ -83,9 +81,8 @@ | ||
| 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 | |
| @@ -114,6 +111,16 @@ | ||
| 114 | 111 | if ( ! FrmAppHelper::pro_is_installed() ) { |
| 115 | 112 | $message = new FrmInbox(); |
| 116 | 113 | $message->dismiss( 'free_templates' ); |
| 117 | 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' ); | |
| 118 | 125 | } |
| 119 | 126 | } |