PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.5.3
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.5.3
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmEntriesController.php +18 -23 6.4.25.5.3 View file →
@@ -85,9 +85,8 @@
85 85 $columns[ $form_id . '_name' ] = __( 'Entry Name', 'formidable' );
86 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
@@ -306,20 +305,9 @@
306 305 $is_sortable = 'checkbox' !== $field->type && empty( $field->field_options['post_field'] );
307 306 return apply_filters( 'frm_field_column_is_sortable', $is_sortable, $field );
308 307 }
309 308
310 - /**
311 - * @param mixed $result Option value from database for hidden columns in entries table.
312 - * @return array
313 - */
314 309 public static function hidden_columns( $result ) {
315 - if ( ! is_array( $result ) ) {
316 - // Force an unexpected value to be an array.
317 - // Since $result is a filtered option and gets saved to the database, it's possible it could be a string.
318 - // Since this code expects an array it would break with a "Uncaught Error: [] operator not supported for strings" error.
319 - $result = array();
320 - }
321 -
322 310 $form_id = FrmForm::get_current_form_id();
323 311
324 312 $hidden = self::user_hidden_columns_for_form( $form_id, $result );
325 313
@@ -473,19 +461,10 @@
473 461
474 462 include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/show.php' );
475 463 }
476 464
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 465 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 - }
466 + FrmAppHelper::permission_check( 'frm_delete_entries' );
488 467
489 468 $params = FrmForm::get_admin_params();
490 469
491 470 if ( isset( $params['keep_post'] ) && $params['keep_post'] ) {
@@ -493,9 +472,9 @@
493 472 }
494 473
495 474 $message = '';
496 475 if ( FrmEntry::destroy( $params['id'] ) ) {
497 - $message = __( 'Entry was successfully deleted', 'formidable' );
476 + $message = __( 'Entry was Successfully Deleted', 'formidable' );
498 477 }
499 478
500 479 self::display_list( $message );
501 480 }
@@ -704,6 +683,22 @@
704 683 */
705 684 public static function contextual_help( $help, $screen_id, $screen ) {
706 685 _deprecated_function( __METHOD__, '4.0' );
707 686 return $help;
687 + }
688 +
689 + /**
690 + * @deprecated 1.07.05
691 + * @codeCoverageIgnore
692 + */
693 + public static function show_form( $id = '', $key = '', $title = false, $description = false ) {
694 + return FrmDeprecated::show_form( $id, $key, $title, $description );
695 + }
696 +
697 + /**
698 + * @deprecated 1.07.05
699 + * @codeCoverageIgnore
700 + */
701 + public static function get_form( $filename, $form, $title, $description ) {
702 + return FrmDeprecated::get_form( $filename, $form, $title, $description );
708 703 }
709 704 }