Contact Form 7 - Version 1.9.5.1

Version Description

Download this release

Release Info

Developer takayukister
Plugin Icon 128x128 Contact Form 7
Version 1.9.5.1
Comparing to
See all releases

Code changes from version 1.9.5 to 1.9.5.1

Files changed (2) hide show
  1. README.txt +1 -1
  2. wp-contact-form-7.php +13 -9
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://pledgie.com/campaigns/3117
4
  Tags: contact, contact form, email, ajax, captcha, akismet
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 1.9.5
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
4
  Tags: contact, contact form, email, ajax, captcha, akismet
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 1.9.5.1
8
 
9
  Just another contact form plugin. Simple but flexible.
10
 
wp-contact-form-7.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7
4
  Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
- Version: 1.9.5
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
@@ -25,7 +25,7 @@ Author URI: http://ideasilo.wordpress.com/
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
 
28
- define('WPCF7_VERSION', '1.9.5');
29
 
30
  if (! defined('WP_CONTENT_DIR'))
31
  define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
@@ -1553,17 +1553,21 @@ var _wpcf7 = {
1553
  }
1554
 
1555
  function cleanup_upload_files() {
1556
- $dir = $this->upload_tmp_dir();
1557
- $dir = trailingslashit($dir);
1558
- if ($handle = opendir($dir)) {
1559
- while (false !== ($file = readdir($handle))) {
1560
- if ($file == "." || $file == "..")
1561
- continue;
 
 
 
 
1562
 
1563
  $stat = stat($dir . $file);
1564
  if ($stat['mtime'] + 60 < time()) // 60 secs
1565
  @ unlink($dir . $file);
1566
- }
1567
  closedir($handle);
1568
  }
1569
  }
4
  Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
5
  Description: Just another contact form plugin. Simple but flexible.
6
  Author: Takayuki Miyoshi
7
+ Version: 1.9.5.1
8
  Author URI: http://ideasilo.wordpress.com/
9
  */
10
 
25
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
  */
27
 
28
+ define('WPCF7_VERSION', '1.9.5.1');
29
 
30
  if (! defined('WP_CONTENT_DIR'))
31
  define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
1553
  }
1554
 
1555
  function cleanup_upload_files() {
1556
+ $dir = $this->upload_tmp_dir();
1557
+ $dir = trailingslashit($dir);
1558
+
1559
+ if (! is_dir($dir))
1560
+ return false;
1561
+
1562
+ if ($handle = opendir($dir)) {
1563
+ while (false !== ($file = readdir($handle))) {
1564
+ if ($file == "." || $file == "..")
1565
+ continue;
1566
 
1567
  $stat = stat($dir . $file);
1568
  if ($stat['mtime'] + 60 < time()) // 60 secs
1569
  @ unlink($dir . $file);
1570
+ }
1571
  closedir($handle);
1572
  }
1573
  }