Skip to content

Commit 0d83f36

Browse files
committed
Fix form submission
1 parent 3375608 commit 0d83f36

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

classes/class-cpt-wplf-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ public function maybe_enqueue_frontend_script() {
969969
wp_localize_script('wplf-form-js', 'ajax_object', apply_filters( 'wplf_ajax_object', array(
970970
'ajax_url' => apply_filters( 'wplf_ajax_endpoint', "$admin_url?action=wplf_submit" ),
971971
'ajax_credentials' => apply_filters( 'wplf_ajax_fetch_credentials_mode', 'same-origin' ),
972-
'request_headers' => apply_filters( 'wplf_ajax_request_headers', '?action=wplf_submit' ),
972+
'request_headers' => (object) apply_filters( 'wplf_ajax_request_headers', [] ),
973973
'wplf_assets_dir' => plugin_dir_url( realpath( __DIR__ . '/../wp-libre-form.php' ) ) . 'assets',
974974
) ) );
975975
}

wp-libre-form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin name: WP Libre Form
44
* Plugin URI: https://github.com/hencca/wp-libre-form
55
* Description: A minimal HTML form builder for WordPress; made for developers
6-
* Version: 1.5.0
6+
* Version: 1.5.0.1
77
* Author: @anttiviljami
88
* Author URI: https://github.com/anttiviljami/
99
* License: GPLv3
@@ -32,7 +32,7 @@
3232

3333
if ( ! class_exists( 'WP_Libre_Form' ) ) :
3434

35-
define( 'WPLF_VERSION', '1.5.0' );
35+
define( 'WPLF_VERSION', '1.5.0.1' );
3636

3737
class WP_Libre_Form {
3838
public static $instance;

0 commit comments

Comments
 (0)