All in One SEO Pack - Version 1.2.5.6

Version Description

Download this release

Release Info

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

Code changes from version 1.2.5.5 to 1.2.5.6

Files changed (1) hide show
  1. all_in_one_seo_pack.php +7 -4
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.2.5.5
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.2.5.5";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
@@ -48,6 +48,10 @@ class All_in_One_SEO_Pack {
48
  var $db_version = '0.1';
49
 
50
  function template_redirect() {
 
 
 
 
51
  if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
52
  $this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
53
  }
@@ -71,7 +75,6 @@ class All_in_One_SEO_Pack {
71
  if (is_feed()) {
72
  return;
73
  }
74
-
75
  if (get_option('aiosp_rewrite_titles')) {
76
  // make the title rewrite as short as possible
77
  $active_handlers = ob_list_handlers();
@@ -144,7 +147,7 @@ class All_in_One_SEO_Pack {
144
 
145
  function replace_title($content, $title) {
146
  $title = trim(addslashes(stripslashes($title)));
147
- $header = preg_replace_callback("/<title>.*<\/title>/s",
148
  create_function('$match_not_needed',"return '<title>$title</title>';"), $content);
149
  $header = stripslashes($header);
150
  return $header;
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.2.5.6
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.2.5.6";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
48
  var $db_version = '0.1';
49
 
50
  function template_redirect() {
51
+ if (is_feed()) {
52
+ return;
53
+ }
54
+
55
  if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
56
  $this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
57
  }
75
  if (is_feed()) {
76
  return;
77
  }
 
78
  if (get_option('aiosp_rewrite_titles')) {
79
  // make the title rewrite as short as possible
80
  $active_handlers = ob_list_handlers();
147
 
148
  function replace_title($content, $title) {
149
  $title = trim(addslashes(stripslashes($title)));
150
+ $header = preg_replace_callback("/<title>.*?<\/title>/s",
151
  create_function('$match_not_needed',"return '<title>$title</title>';"), $content);
152
  $header = stripslashes($header);
153
  return $header;