| @@ -472,19 +472,10 @@ | ||
| 472 | 472 | |
| 473 | 473 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/show.php' ); |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | - /** | |
| 477 | - * Destroy an entry from the admin page. | |
| 478 | - * 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. | |
| 479 | - * | |
| 480 | - * @return void | |
| 481 | - */ | |
| 482 | 476 | public static function destroy() { |
| 483 | - $permission_error = FrmAppHelper::permission_nonce_error( 'frm_delete_entries', '_wpnonce', -1 ); | |
| 484 | - if ( false !== $permission_error ) { | |
| 485 | - wp_die( esc_html( $permission_error ) ); | |
| 486 | - } | |
| 477 | + FrmAppHelper::permission_check( 'frm_delete_entries' ); | |
| 487 | 478 | |
| 488 | 479 | $params = FrmForm::get_admin_params(); |
| 489 | 480 | |
| 490 | 481 | if ( isset( $params['keep_post'] ) && $params['keep_post'] ) { |
| @@ -703,6 +694,22 @@ | ||
| 703 | 694 | */ |
| 704 | 695 | public static function contextual_help( $help, $screen_id, $screen ) { |
| 705 | 696 | _deprecated_function( __METHOD__, '4.0' ); |
| 706 | 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 ); | |
| 707 | 714 | } |
| 708 | 715 | } |