Skip to content

Commit

Permalink
Fix form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
k1sul1 committed Oct 4, 2018
1 parent 3375608 commit 0d83f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/class-cpt-wplf-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
) ) );
}
Expand Down
4 changes: 2 additions & 2 deletions wp-libre-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0d83f36

Please sign in to comment.