| @@ -91,9 +91,9 @@ | ||
| 91 | 91 | { |
| 92 | 92 | $permission = 'fst_view_all_reports'; |
| 93 | 93 | |
| 94 | 94 | if ( ! isset($_REQUEST['_wpnonce']) || ! wp_verify_nonce(sanitize_text_field(wp_unslash($_REQUEST['_wpnonce'])), 'fluent-support') ) { |
| 95 | - wp_die('Security check failed'); | |
| 95 | + wp_die(esc_html__('Security check failed.', 'fluent-support')); | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | if ( PermissionManager::currentUserCan($permission) ) { |
| 99 | 99 | return true; |
| @@ -98,8 +98,8 @@ | ||
| 98 | 98 | if ( PermissionManager::currentUserCan($permission) ) { |
| 99 | 99 | return true; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - wp_die('You do not have permission'); | |
| 102 | + wp_die(esc_html__('You do not have permission to export this data.', 'fluent-support')); | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | } |