Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ class FrmFormsController {
* message in the current tab.
*
* @since 6.2
* @since x.x This is public.
*
* @var array Keys are form IDs and values are 1.
*/
private static $redirected_in_new_tab = array();
public static $redirected_in_new_tab = array();

/**
* The HTML for the Formdiable TinyMCE button (That triggers a popup to insert shortcodes)
Expand Down Expand Up @@ -2738,11 +2739,12 @@ private static function redirect_after_submit( $args ) {
* Prints open in new tab js with fallback handler.
*
* @since 6.3.1
* @since x.x This is public.
*
* @param string $success_url Success URL.
* @param array $args See {@see FrmFormsController::redirect_after_submit()}.
*/
private static function print_open_in_new_tab_js_with_fallback_handler( $success_url, $args ) {
public static function print_open_in_new_tab_js_with_fallback_handler( $success_url, $args ) {
echo '<script>var newTab = window.open("' . esc_url_raw( $success_url ) . '", "_blank");';
echo 'if ( ! newTab ) {';

Expand Down