Skip to content

Commit

Permalink
WP Libre Forms 1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Kuosmanen committed Oct 26, 2016
1 parent 4c10cd7 commit 2d48913
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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 @@ -512,7 +512,7 @@ function maybe_enqueue_frontend_script() {
global $post;

// register the script, but only enqueue it if the current post contains a form in it
wp_register_script( 'wplf-form-js', plugins_url( 'assets/scripts/wplf-form.js', dirname(__FILE__) ), array(), '1.0.2', true );
wp_register_script( 'wplf-form-js', plugins_url( 'assets/scripts/wplf-form.js', dirname(__FILE__) ), array(), WPLF_VERSION, true );

if( is_a( $post, 'WP_Post' ) && ( has_shortcode( $post->post_content, 'libre-form') || $post->post_type === 'wplf-form') ) {
wp_enqueue_script( 'wplf-form-js' );
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: Zuige
Tags: Contact, Form, Lead, Collector, HTML, Builder
Donate link: https://github.com/anttiviljami
Requires at least: 4.2
Tested up to: 4.4.4
Stable tag: 1.0.2
Tested up to: 4.6.1
Stable tag: 1.1
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down
4 changes: 3 additions & 1 deletion 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/anttiviljami/wp-libre-form
* Description: A minimal HTML form builder for WordPress; made for developers
* Version: 1.0.2
* Version: 1.1
* Author: @anttiviljami
* Author URI: https://github.com/anttiviljami/
* License: GPLv3
Expand Down Expand Up @@ -31,6 +31,8 @@

if ( ! class_exists( 'WP_Libre_Form' ) ) :

define( 'WPLF_VERSION', '1.1' );

class WP_Libre_Form {
public static $instance;

Expand Down

0 comments on commit 2d48913

Please sign in to comment.