PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.4
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.4
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 +19 -30 6.35.4 View file →
@@ -23,9 +23,9 @@
23 23 /**
24 24 * @since 2.05.07
25 25 */
26 26 private static function load_manage_entries_hooks() {
27 - if ( ! in_array( FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ), array( 'edit', 'show', 'new', 'duplicate' ), true ) ) {
27 + if ( ! in_array( FrmAppHelper::simple_get( 'frm_action', 'sanitize_title' ), array( 'edit', 'show', 'new' ) ) ) {
28 28 $menu_name = FrmAppHelper::get_menu_name();
29 29 $base = self::base_column_key( $menu_name );
30 30
31 31 add_filter( 'manage_' . $base . '_columns', 'FrmEntriesController::manage_columns' );
@@ -305,20 +305,9 @@
305 305 $is_sortable = 'checkbox' !== $field->type && empty( $field->field_options['post_field'] );
306 306 return apply_filters( 'frm_field_column_is_sortable', $is_sortable, $field );
307 307 }
308 308
309 - /**
310 - * @param mixed $result Option value from database for hidden columns in entries table.
311 - * @return array
312 - */
313 309 public static function hidden_columns( $result ) {
314 - if ( ! is_array( $result ) ) {
315 - // Force an unexpected value to be an array.
316 - // Since $result is a filtered option and gets saved to the database, it's possible it could be a string.
317 - // Since this code expects an array it would break with a "Uncaught Error: [] operator not supported for strings" error.
318 - $result = array();
319 - }
320 -
321 310 $form_id = FrmForm::get_current_form_id();
322 311
323 312 $hidden = self::user_hidden_columns_for_form( $form_id, $result );
324 313
@@ -472,19 +461,10 @@
472 461
473 462 include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/show.php' );
474 463 }
475 464
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 465 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 - }
466 + FrmAppHelper::permission_check( 'frm_delete_entries' );
487 467
488 468 $params = FrmForm::get_admin_params();
489 469
490 470 if ( isset( $params['keep_post'] ) && $params['keep_post'] ) {
@@ -492,9 +472,9 @@
492 472 }
493 473
494 474 $message = '';
495 475 if ( FrmEntry::destroy( $params['id'] ) ) {
496 - $message = __( 'Entry was successfully deleted', 'formidable' );
476 + $message = __( 'Entry was Successfully Deleted', 'formidable' );
497 477 }
498 478
499 479 self::display_list( $message );
500 480 }
@@ -685,15 +665,8 @@
685 665 $data = $entry->description;
686 666 if ( isset( $data['browser'] ) ) {
687 667 $browser = FrmEntriesHelper::get_browser( $data['browser'] );
688 668 }
689 - /**
690 - * Add or remove information in the entry sidebar.
691 - *
692 - * @since 5.5.2
693 - * @param array $data
694 - */
695 - $data = apply_filters( 'frm_sidebar_data', $data, compact( 'entry' ) );
696 669 }
697 670
698 671 include( FrmAppHelper::plugin_path() . '/classes/views/frm-entries/sidebar-shared.php' );
699 672 }
@@ -703,6 +676,22 @@
703 676 */
704 677 public static function contextual_help( $help, $screen_id, $screen ) {
705 678 _deprecated_function( __METHOD__, '4.0' );
706 679 return $help;
680 + }
681 +
682 + /**
683 + * @deprecated 1.07.05
684 + * @codeCoverageIgnore
685 + */
686 + public static function show_form( $id = '', $key = '', $title = false, $description = false ) {
687 + return FrmDeprecated::show_form( $id, $key, $title, $description );
688 + }
689 +
690 + /**
691 + * @deprecated 1.07.05
692 + * @codeCoverageIgnore
693 + */
694 + public static function get_form( $filename, $form, $title, $description ) {
695 + return FrmDeprecated::get_form( $filename, $form, $title, $description );
707 696 }
708 697 }