Contact Form Submissions - Version 1.1

Version Description

  • Added checks for older versions of cf7
Download this release

Release Info

Developer jasongreen
Plugin Icon 128x128 Contact Form Submissions
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

Files changed (3) hide show
  1. Submissions.php +7 -1
  2. contact-form-submissions.php +1 -1
  3. readme.txt +6 -6
Submissions.php CHANGED
@@ -48,7 +48,13 @@ class WPCF7Submissions {
48
  function submission($components, $contact_form, $mail){
49
  global $wpcf7s_post_id;
50
 
51
- $contact_form_id = $contact_form->id();
 
 
 
 
 
 
52
  $body = $components['body'];
53
  $sender = wpcf7_strip_newline( $components['sender'] );
54
  $recipient = wpcf7_strip_newline( $components['recipient'] );
48
  function submission($components, $contact_form, $mail){
49
  global $wpcf7s_post_id;
50
 
51
+ $contact_form_id = 0;
52
+ if(method_exists($contact_form,'id')){
53
+ $contact_form_id = $contact_form->id();
54
+ } elseif(property_exists($contact_form , 'id' )) {
55
+ $contact_form_id = $contact_form->id;
56
+ }
57
+
58
  $body = $components['body'];
59
  $sender = wpcf7_strip_newline( $components['sender'] );
60
  $recipient = wpcf7_strip_newline( $components['recipient'] );
contact-form-submissions.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Contact Form Submissions
4
  Description: Save all Contact Form 7 submissions in the database.
5
- Version: 1.0
6
  Author: Jason Green
7
  License: GPLv3
8
  */
2
  /*
3
  Plugin Name: Contact Form Submissions
4
  Description: Save all Contact Form 7 submissions in the database.
5
+ Version: 1.1
6
  Author: Jason Green
7
  License: GPLv3
8
  */
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: jasongreen
3
- Tags: contact form 7, save contact form, submissions, contact form db, cf7
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3.1
7
- Stable tag: 1.0
8
  License: GPLv3
9
 
10
  Save all Contact Form 7 submissions in the database.
@@ -30,8 +30,8 @@ None yet
30
 
31
  == Changelog ==
32
 
33
- = 1.0 =
34
- * First release
35
 
36
- == Upgrade Notice ==
37
- * 1.0 First Release
1
  === Plugin Name ===
2
  Contributors: jasongreen
3
+ Tags: contact form 7, save contact form, submissions, contact form db, cf7, wpcf7
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNHXWSXSPYATE
5
  Requires at least: 3.0.1
6
  Tested up to: 4.3.1
7
+ Stable tag: 1.1
8
  License: GPLv3
9
 
10
  Save all Contact Form 7 submissions in the database.
30
 
31
  == Changelog ==
32
 
33
+ = 1.1 =
34
+ * Added checks for older versions of cf7
35
 
36
+ = 1.0 =
37
+ * First release