Version Description
- Minor update to remove PHP warning
Download this release
Release Info
Developer | jasongreen |
Plugin | Contact Form Submissions |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- Submissions.php +9 -10
- contact-form-submissions.php +1 -1
- readme.txt +4 -1
Submissions.php
CHANGED
@@ -110,18 +110,17 @@ class WPCF7Submissions {
|
|
110 |
return $post_id;
|
111 |
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
$exclude = 'wpcf7s';
|
118 |
-
$post_types = $query->get('post_type');
|
119 |
|
120 |
-
|
121 |
-
|
122 |
|
|
|
|
|
|
|
123 |
$query->set( 'post_type', $post_types );
|
124 |
-
|
125 |
-
return query;
|
126 |
}
|
127 |
}
|
110 |
return $post_id;
|
111 |
}
|
112 |
|
113 |
+
function disable_feed($query) {
|
114 |
+
if(!$query->is_feed || !$query->is_main_query()) {
|
115 |
+
return;
|
116 |
+
}
|
|
|
|
|
117 |
|
118 |
+
$exclude = 'wpcf7s';
|
119 |
+
$post_types = $query->get('post_type');
|
120 |
|
121 |
+
if (($key = array_search($exclude, $post_types)) !== false){
|
122 |
+
unset($post_types[$key]);
|
123 |
+
}
|
124 |
$query->set( 'post_type', $post_types );
|
|
|
|
|
125 |
}
|
126 |
}
|
contact-form-submissions.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Contact Form Submissions
|
4 |
Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
5 |
-
Version: 1.2.
|
6 |
Author: Jason Green
|
7 |
License: GPLv3
|
8 |
Domain Path: /languages
|
2 |
/*
|
3 |
Plugin Name: Contact Form Submissions
|
4 |
Description: Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
5 |
+
Version: 1.2.2
|
6 |
Author: Jason Green
|
7 |
License: GPLv3
|
8 |
Domain Path: /languages
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form 7, save contact form, submissions, contact form db, cf7, wpcf
|
|
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.2.
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
@@ -35,6 +35,9 @@ None yet
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
38 |
= 1.2.1 =
|
39 |
* Security fix: Fixed posts from being loaded when not logged in. Thanks to [aurepons](https://wordpress.org/support/profile/aurepons) for discovering the issue.
|
40 |
|
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.2.2
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save all Contact Form 7 submissions in your database.
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.2.2 =
|
39 |
+
* Minor update to remove PHP warning
|
40 |
+
|
41 |
= 1.2.1 =
|
42 |
* Security fix: Fixed posts from being loaded when not logged in. Thanks to [aurepons](https://wordpress.org/support/profile/aurepons) for discovering the issue.
|
43 |
|