From 1e6aceab305f0f31905982aa3d13cd2d8d970c9e Mon Sep 17 00:00:00 2001 From: nileshc-bsf Date: Mon, 20 Dec 2021 14:05:30 +0530 Subject: [PATCH] fix: filter should return something, only return was added - Affecting Astra customizer. --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.php b/init.php index 119be75..d91f483 100644 --- a/init.php +++ b/init.php @@ -588,7 +588,7 @@ function bsf_editor_footer_scripts() { ?> function bsf_force_send( $args ) { if ( ! isset( $_GET['bsf_file_upload_nonce'] ) || ! wp_verify_nonce( $_GET['bsf_file_upload_nonce'], 'ajax_nonce' ) ) { - return; + return $args; } // if the Gallery tab is opened from a custom meta box field, add Insert Into Post button. if ( isset( $_GET['bsf_force_send'] ) && 'true' == esc_attr( $_GET['bsf_force_send'] ) ) {