All in One SEO Pack - Version 1.2.9.2

Version Description

Download this release

Release Info

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

Code changes from version 1.2.9.1 to 1.2.9.2

Files changed (1) hide show
  1. all_in_one_seo_pack.php +4 -2
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.9.1
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.9.1";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -195,6 +195,7 @@ class All_in_One_SEO_Pack {
195
  }
196
 
197
  function replace_title($content, $title) {
 
198
  $title_tag_start = "<title>";
199
  $title_tag_end = "</title>";
200
  $len_start = strlen($title_tag_start);
@@ -263,6 +264,7 @@ class All_in_One_SEO_Pack {
263
  $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
264
  $new_title = str_replace('%post_title%', $title, $new_title);
265
  $new_title = str_replace('%category%', $category, $new_title);
 
266
  $title = $new_title;
267
  $title = trim($title);
268
  $header = $this->replace_title($header, $title);
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.9.2
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.9.2";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
195
  }
196
 
197
  function replace_title($content, $title) {
198
+ $title = trim(strip_tags($title));
199
  $title_tag_start = "<title>";
200
  $title_tag_end = "</title>";
201
  $len_start = strlen($title_tag_start);
264
  $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
265
  $new_title = str_replace('%post_title%', $title, $new_title);
266
  $new_title = str_replace('%category%', $category, $new_title);
267
+ $new_title = str_replace('%category_title%', $category, $new_title);
268
  $title = $new_title;
269
  $title = trim($title);
270
  $header = $this->replace_title($header, $title);