Contact Form Email - Version 1.2.92

Version Description

  • Code improvements
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.92
Comparing to
See all releases

Code changes from version 1.2.91 to 1.2.92

Files changed (3) hide show
  1. README.txt +5 -2
  2. cp-main-class.inc.php +3 -3
  3. form-to-email.php +1 -1
README.txt CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
456
 
457
  == Changelog ==
458
 
 
 
 
459
  = 1.2.91 =
460
  * Allowed better email formating and misc improvements
461
 
@@ -1033,5 +1036,5 @@ When you click a field already added into the contact form builder area, you can
1033
 
1034
  == Upgrade Notice ==
1035
 
1036
- = 1.2.91 =
1037
- * Allowed better email formating and misc improvements
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.92 =
460
+ * Code improvements
461
+
462
  = 1.2.91 =
463
  * Allowed better email formating and misc improvements
464
 
1036
 
1037
  == Upgrade Notice ==
1038
 
1039
+ = 1.2.92 =
1040
+ * Code improvements
cp-main-class.inc.php CHANGED
@@ -686,19 +686,19 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
686
  }
687
 
688
 
689
- if ($this->get_param($this->prefix.'_csv') && is_admin() )
690
  {
691
  $this->export_csv();
692
  return;
693
  }
694
 
695
- if ( $this->get_param($this->prefix.'_post_options') && is_admin() )
696
  {
697
  $this->save_options();
698
  return;
699
  }
700
 
701
- if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['CP_CFTE_post_edition'] ) && is_admin() )
702
  {
703
  $this->save_edition();
704
  return;
686
  }
687
 
688
 
689
+ if ($this->get_param($this->prefix.'_csv') && current_user_can('edit_pages') && is_admin() )
690
  {
691
  $this->export_csv();
692
  return;
693
  }
694
 
695
+ if ( $this->get_param($this->prefix.'_post_options') && current_user_can('edit_pages') && is_admin() )
696
  {
697
  $this->save_options();
698
  return;
699
  }
700
 
701
+ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST['CP_CFTE_post_edition'] ) && current_user_can('edit_pages') && is_admin() )
702
  {
703
  $this->save_edition();
704
  return;
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.91
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.92
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email