| @@ -80,14 +80,13 @@ | ||
| 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' ] = 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' ); | |
| 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' ); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - $columns[ $form_id . '_is_draft' ] = esc_html__( 'Entry Status', 'formidable' ); | |
| 90 | 89 | $columns[ $form_id . '_created_at' ] = __( 'Entry creation date', 'formidable' ); |
| 91 | 90 | $columns[ $form_id . '_updated_at' ] = __( 'Entry update date', 'formidable' ); |
| 92 | 91 | self::maybe_add_ip_col( $form_id, $columns ); |
| 93 | 92 | |
| @@ -97,9 +96,9 @@ | ||
| 97 | 96 | if ( FrmAppHelper::is_admin_page( 'formidable-entries' ) && in_array( $action, array( '', 'list', 'destroy' ) ) ) { |
| 98 | 97 | add_screen_option( |
| 99 | 98 | 'per_page', |
| 100 | 99 | array( |
| 101 | - 'label' => esc_html__( 'Entries', 'formidable' ), | |
| 100 | + 'label' => __( 'Entries', 'formidable' ), | |
| 102 | 101 | 'default' => 20, |
| 103 | 102 | 'option' => 'formidable_page_formidable_entries_per_page', |
| 104 | 103 | ) |
| 105 | 104 | ); |
| @@ -473,19 +472,10 @@ | ||
| 473 | 472 | |
| 474 | 473 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/show.php' ); |
| 475 | 474 | } |
| 476 | 475 | |
| 477 | - /** | |
| 478 | - * Destroy an entry from the admin page. | |
| 479 | - * This is triggered from the entries list from the "Delete" row action, and also from the "Delete Entry" trigger in the view/edit entry sidebar. | |
| 480 | - * | |
| 481 | - * @return void | |
| 482 | - */ | |
| 483 | 476 | public static function destroy() { |
| 484 | - $permission_error = FrmAppHelper::permission_nonce_error( 'frm_delete_entries', '_wpnonce', -1 ); | |
| 485 | - if ( false !== $permission_error ) { | |
| 486 | - wp_die( esc_html( $permission_error ) ); | |
| 487 | - } | |
| 477 | + FrmAppHelper::permission_check( 'frm_delete_entries' ); | |
| 488 | 478 | |
| 489 | 479 | $params = FrmForm::get_admin_params(); |
| 490 | 480 | |
| 491 | 481 | if ( isset( $params['keep_post'] ) && $params['keep_post'] ) { |
| @@ -704,6 +694,22 @@ | ||
| 704 | 694 | */ |
| 705 | 695 | public static function contextual_help( $help, $screen_id, $screen ) { |
| 706 | 696 | _deprecated_function( __METHOD__, '4.0' ); |
| 707 | 697 | return $help; |
| 698 | + } | |
| 699 | + | |
| 700 | + /** | |
| 701 | + * @deprecated 1.07.05 | |
| 702 | + * @codeCoverageIgnore | |
| 703 | + */ | |
| 704 | + public static function show_form( $id = '', $key = '', $title = false, $description = false ) { | |
| 705 | + return FrmDeprecated::show_form( $id, $key, $title, $description ); | |
| 706 | + } | |
| 707 | + | |
| 708 | + /** | |
| 709 | + * @deprecated 1.07.05 | |
| 710 | + * @codeCoverageIgnore | |
| 711 | + */ | |
| 712 | + public static function get_form( $filename, $form, $title, $description ) { | |
| 713 | + return FrmDeprecated::get_form( $filename, $form, $title, $description ); | |
| 708 | 714 | } |
| 709 | 715 | } |