diff --git a/classes/class-cpt-wplf-form.php b/classes/class-cpt-wplf-form.php index fc017f6..63726de 100644 --- a/classes/class-cpt-wplf-form.php +++ b/classes/class-cpt-wplf-form.php @@ -969,7 +969,7 @@ public function maybe_enqueue_frontend_script() { wp_localize_script('wplf-form-js', 'ajax_object', apply_filters( 'wplf_ajax_object', array( 'ajax_url' => apply_filters( 'wplf_ajax_endpoint', "$admin_url?action=wplf_submit" ), 'ajax_credentials' => apply_filters( 'wplf_ajax_fetch_credentials_mode', 'same-origin' ), - 'request_headers' => apply_filters( 'wplf_ajax_request_headers', '?action=wplf_submit' ), + 'request_headers' => (object) apply_filters( 'wplf_ajax_request_headers', [] ), 'wplf_assets_dir' => plugin_dir_url( realpath( __DIR__ . '/../wp-libre-form.php' ) ) . 'assets', ) ) ); } diff --git a/wp-libre-form.php b/wp-libre-form.php index 374d7d2..9022c26 100644 --- a/wp-libre-form.php +++ b/wp-libre-form.php @@ -3,7 +3,7 @@ * Plugin name: WP Libre Form * Plugin URI: https://github.com/hencca/wp-libre-form * Description: A minimal HTML form builder for WordPress; made for developers - * Version: 1.5.0 + * Version: 1.5.0.1 * Author: @anttiviljami * Author URI: https://github.com/anttiviljami/ * License: GPLv3 @@ -32,7 +32,7 @@ if ( ! class_exists( 'WP_Libre_Form' ) ) : -define( 'WPLF_VERSION', '1.5.0' ); +define( 'WPLF_VERSION', '1.5.0.1' ); class WP_Libre_Form { public static $instance;