Skip to content

Commit 1f3c65b

Browse files
author
Antti Kuosmanen
committed
Tagging version 1.3.1
Minor fixes for 1.3 release
1 parent b14acc9 commit 1f3c65b

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

inc/wplf-form-actions.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ function wplf_send_email_copy( $return, $submission_id = null ) {
77
return;
88
}
99

10+
if ( ! $submission_id ) {
11+
$submission_id = $return->submission_id;
12+
}
13+
1014
// _form_id is already validated and we know it exists by this point
1115
$form_id = intval( ( isset( $submission_id ) ) ?
1216
get_post_meta( $submission_id, '_form_id', true ) : $_POST['_form_id'] );
@@ -24,12 +28,12 @@ function wplf_send_email_copy( $return, $submission_id = null ) {
2428
$form_meta['_wplf_email_copy_to'][0] : get_option( 'admin_email' );
2529

2630
// translators: %1$s is submission ID, %2$s is URL where form was submitted
27-
$subject = wp_sprintf( __( '[%1$s] New submission to %2$s', 'wp-libre-form' ), $return->submission_id, $referrer );
31+
$subject = wp_sprintf( __( '[%1$s] New submission to %2$s', 'wp-libre-form' ), $submission_id, $referrer );
2832

2933
if ( isset( $submission_id ) ) {
3034
$to = get_post_meta( $submission_id, '_wplf_email_copy_to', true );
3135
// translators: %1$s is submission ID, %2$s is URL where form was submitted
32-
$subject = wp_sprintf( __( '[%1$s] Submission from %2$s', 'wp-libre-form' ), $return->submission_id, $referrer );
36+
$subject = wp_sprintf( __( '[%1$s] Submission from %2$s', 'wp-libre-form' ), $submission_id, $referrer );
3337
}
3438

3539
$to = empty( $to ) ? get_option( 'admin_email' ) : $to;

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: Contact, Form, Lead, Collector, HTML, Builder
44
Donate link: https://github.com/anttiviljami
55
Requires at least: 4.2
66
Tested up to: 4.7.4
7-
Stable tag: 1.3
7+
Stable tag: 1.3.1
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

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/anttiviljami/wp-libre-form
55
* Description: A minimal HTML form builder for WordPress; made for developers
6-
* Version: 1.3
6+
* Version: 1.3.1
77
* Author: @anttiviljami
88
* Author URI: https://github.com/anttiviljami/
99
* License: GPLv3
@@ -31,7 +31,7 @@
3131

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

34-
define( 'WPLF_VERSION', '1.3' );
34+
define( 'WPLF_VERSION', '1.3.1' );
3535

3636
class WP_Libre_Form {
3737
public static $instance;

0 commit comments

Comments
 (0)