| @@ -80,13 +80,14 @@ | ||
| 80 | 80 | |
| 81 | 81 | if ( $form_id ) { |
| 82 | 82 | self::get_columns_for_form( $form_id, $columns ); |
| 83 | 83 | } else { |
| 84 | - $columns[ $form_id . '_form_id' ] = __( 'Form', 'formidable' ); | |
| 85 | - $columns[ $form_id . '_name' ] = __( 'Entry Name', 'formidable' ); | |
| 86 | - $columns[ $form_id . '_user_id' ] = __( 'Created By', 'formidable' ); | |
| 84 | + $columns[ $form_id . '_form_id' ] = esc_html__( 'Form', 'formidable' ); | |
| 85 | + $columns[ $form_id . '_name' ] = esc_html__( 'Entry Name', 'formidable' ); | |
| 86 | + $columns[ $form_id . '_user_id' ] = esc_html__( 'Created By', 'formidable' ); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | + $columns[ $form_id . '_is_draft' ] = esc_html__( 'Entry Status', 'formidable' ); | |
| 89 | 90 | $columns[ $form_id . '_created_at' ] = __( 'Entry creation date', 'formidable' ); |
| 90 | 91 | $columns[ $form_id . '_updated_at' ] = __( 'Entry update date', 'formidable' ); |
| 91 | 92 | self::maybe_add_ip_col( $form_id, $columns ); |
| 92 | 93 | |
| @@ -96,9 +97,9 @@ | ||
| 96 | 97 | if ( FrmAppHelper::is_admin_page( 'formidable-entries' ) && in_array( $action, array( '', 'list', 'destroy' ) ) ) { |
| 97 | 98 | add_screen_option( |
| 98 | 99 | 'per_page', |
| 99 | 100 | array( |
| 100 | - 'label' => __( 'Entries', 'formidable' ), | |
| 101 | + 'label' => esc_html__( 'Entries', 'formidable' ), | |
| 101 | 102 | 'default' => 20, |
| 102 | 103 | 'option' => 'formidable_page_formidable_entries_per_page', |
| 103 | 104 | ) |
| 104 | 105 | ); |
| @@ -481,9 +482,15 @@ | ||
| 481 | 482 | */ |
| 482 | 483 | public static function destroy() { |
| 483 | 484 | $permission_error = FrmAppHelper::permission_nonce_error( 'frm_delete_entries', '_wpnonce', -1 ); |
| 484 | 485 | if ( false !== $permission_error ) { |
| 485 | - wp_die( esc_html( $permission_error ) ); | |
| 486 | + $error_args = array( | |
| 487 | + 'title' => __( 'Verification failed', 'formidable' ), | |
| 488 | + 'body' => $permission_error, | |
| 489 | + 'cancel_url' => admin_url( 'admin.php?page=formidable-entries' ), | |
| 490 | + ); | |
| 491 | + FrmAppController::show_error_modal( $error_args ); | |
| 492 | + return; | |
| 486 | 493 | } |
| 487 | 494 | |
| 488 | 495 | $params = FrmForm::get_admin_params(); |
| 489 | 496 | |