All in One SEO Pack - Version 1.3.8.4

Version Description

Download this release

Release Info

Developer uberdose
Plugin Icon 128x128 All in One SEO Pack
Version 1.3.8.4
Comparing to
See all releases

Code changes from version 1.3.8.3 to 1.3.8.4

Files changed (1) hide show
  1. all_in_one_seo_pack.php +12 -5
all_in_one_seo_pack.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
- Version: 1.3.8.3
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
- var $version = "1.3.8.3";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
@@ -628,6 +628,7 @@ class All_in_One_SEO_Pack {
628
  return $file;
629
  }
630
 
 
631
  function download_newest_version() {
632
  $success = true;
633
  $file = $this->get_url($this->upgrade_url);
@@ -638,11 +639,17 @@ class All_in_One_SEO_Pack {
638
  $this->upgrade_error = "Could not download distribution ($this->upgrade_url)";
639
  $success = false;
640
  } else {
641
- $fh = fopen($this->upgrade_filename, 'w');
642
- if (!fwrite($fh, $file)) {
 
643
  $success = false;
 
 
 
 
 
 
644
  }
645
- fclose($fh);
646
  }
647
  return $success;
648
  }
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
+ Version: 1.3.8.4
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.3.8.4";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
628
  return $file;
629
  }
630
 
631
+ /* TODO internationalize */
632
  function download_newest_version() {
633
  $success = true;
634
  $file = $this->get_url($this->upgrade_url);
639
  $this->upgrade_error = "Could not download distribution ($this->upgrade_url)";
640
  $success = false;
641
  } else {
642
+ $fh = @fopen($this->upgrade_filename, 'w');
643
+ if (!$fh) {
644
+ $this->upgrade_error = "Could not open $this->upgrade_filename for writing.";
645
  $success = false;
646
+ } else if (!@fwrite($fh, $file)) {
647
+ $this->upgrade_error = "Could not write to $this->upgrade_filename.";
648
+ $success = false;
649
+ }
650
+ if ($success) {
651
+ fclose($fh);
652
  }
 
653
  }
654
  return $success;
655
  }