Version Description
- Minor bug fixes
Download this release
Release Info
Developer | jasongreen |
Plugin | Contact Form Submissions |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- Admin.php +5 -2
- contact-form-submissions.php +1 -1
- readme.txt +4 -1
Admin.php
CHANGED
@@ -98,7 +98,7 @@ class WPCF7SAdmin
|
|
98 |
public function scripts()
|
99 |
{
|
100 |
// only enqueue if your on the submissions page
|
101 |
-
if ('wpcf7s' === get_post_type() || 'wpcf7s' === $_GET['post_type']) {
|
102 |
wp_enqueue_style('wpcf7s-style', plugins_url('/css/admin.css', WPCF7S_FILE));
|
103 |
}
|
104 |
}
|
@@ -126,7 +126,9 @@ class WPCF7SAdmin
|
|
126 |
{
|
127 |
global $post_type;
|
128 |
if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
|
129 |
-
|
|
|
|
|
130 |
if (!empty($form_id)) {
|
131 |
$query->set('meta_query', array(
|
132 |
array(
|
@@ -373,6 +375,7 @@ class WPCF7SAdmin
|
|
373 |
*/
|
374 |
public function get_mail_files($post_id = 0)
|
375 |
{
|
|
|
376 |
$post_meta = get_post_meta($post_id);
|
377 |
if($post_meta){
|
378 |
$posted = array_intersect_key(
|
98 |
public function scripts()
|
99 |
{
|
100 |
// only enqueue if your on the submissions page
|
101 |
+
if ('wpcf7s' === get_post_type() || (isset($_GET['post_type']) && 'wpcf7s' === $_GET['post_type'])) {
|
102 |
wp_enqueue_style('wpcf7s-style', plugins_url('/css/admin.css', WPCF7S_FILE));
|
103 |
}
|
104 |
}
|
126 |
{
|
127 |
global $post_type;
|
128 |
if ($query->is_admin && 'wpcf7s' === $post_type && $query->is_main_query()) {
|
129 |
+
if(isset($_GET['wpcf7_contact_form'])){
|
130 |
+
$form_id = esc_attr($_GET['wpcf7_contact_form']);
|
131 |
+
}
|
132 |
if (!empty($form_id)) {
|
133 |
$query->set('meta_query', array(
|
134 |
array(
|
375 |
*/
|
376 |
public function get_mail_files($post_id = 0)
|
377 |
{
|
378 |
+
$posted = array();
|
379 |
$post_meta = get_post_meta($post_id);
|
380 |
if($post_meta){
|
381 |
$posted = array_intersect_key(
|
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.5.
|
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.5.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.7.3
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save & Export your Contact Form 7 submissions.
|
@@ -40,6 +40,9 @@ None yet
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 1.5.1 =
|
44 |
* Added ability to export submissions in csv format
|
45 |
|
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.7.3
|
7 |
+
Stable tag: 1.5.2
|
8 |
License: GPLv3
|
9 |
|
10 |
Never miss an enquiry again! Save & Export your Contact Form 7 submissions.
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 1.5.2 =
|
44 |
+
* Minor bug fixes
|
45 |
+
|
46 |
= 1.5.1 =
|
47 |
* Added ability to export submissions in csv format
|
48 |
|