| @@ -51,30 +51,9 @@ | ||
| 51 | 51 | 'success_msg' => FrmOnSubmitHelper::get_default_msg(), |
| 52 | 52 | 'show_form' => '', |
| 53 | 53 | 'success_url' => '', |
| 54 | 54 | 'success_page_id' => '', |
| 55 | - 'open_in_new_tab' => '', | |
| 56 | 55 | ); |
| 57 | - } | |
| 58 | - | |
| 59 | - /** | |
| 60 | - * This function should check that $new_instance is set correctly. | |
| 61 | - * The newly calculated value of $instance should be returned. | |
| 62 | - * If "false" is returned, the instance won't be saved/updated. | |
| 63 | - * | |
| 64 | - * @param array $new_instance New settings for this instance as input by the user via form() | |
| 65 | - * @param array $old_instance Old settings for this instance | |
| 66 | - * | |
| 67 | - * @return array Settings to save or bool false to cancel saving | |
| 68 | - */ | |
| 69 | - public function update( $new_instance, $old_instance ) { | |
| 70 | - if ( 'redirect' === $new_instance['post_content']['success_action'] && ! empty( $new_instance['post_content']['success_url'] ) ) { | |
| 71 | - $new_instance['post_content']['success_url'] = FrmFormsHelper::maybe_add_sanitize_url_attr( | |
| 72 | - $new_instance['post_content']['success_url'], | |
| 73 | - (int) $new_instance['menu_order'] | |
| 74 | - ); | |
| 75 | - } | |
| 76 | - return $new_instance; | |
| 77 | 56 | } |
| 78 | 57 | |
| 79 | 58 | /** |
| 80 | 59 | * Add a workaround in case Pro hasn't been updated. We don't want to |