All in One SEO Pack - Version 1.3.7.2

Version Description

Download this release

Release Info

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

Code changes from version 1.3.7.1 to 1.3.7.2

Files changed (1) hide show
  1. all_in_one_seo_pack.php +23 -23
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.7.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.3.7.1";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
@@ -259,20 +259,20 @@ class All_in_One_SEO_Pack {
259
 
260
  if (is_home()) {
261
  if ($this->is_static_posts_page()) {
262
- $title = get_post_meta(get_option('page_for_posts'), "title", true);
263
  if (!$title) {
264
  $title = $this->internationalize(wp_title('', false));
265
  }
266
  $this->pure_title = $title;
267
  $title_format = get_option('aiosp_page_title_format');
268
- $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
269
  $new_title = str_replace('%page_title%', $title, $new_title);
270
- $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
271
  $title = trim($new_title);
272
  $header = $this->replace_title($header, $title);
273
  } else {
274
  if ($this->internationalize(get_option('aiosp_home_title'))) {
275
- $header = $this->replace_title($header, get_option('aiosp_home_title'));
276
  }
277
  $this->pure_title = get_option('aiosp_home_title');
278
  }
@@ -291,8 +291,8 @@ class All_in_One_SEO_Pack {
291
  }
292
  $this->pure_title = $title;
293
  $title_format = get_option('aiosp_post_title_format');
294
- $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
295
- $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
296
  $new_title = str_replace('%post_title%', $title, $new_title);
297
  $new_title = str_replace('%category%', $category, $new_title);
298
  $new_title = str_replace('%category_title%', $category, $new_title);
@@ -308,8 +308,8 @@ class All_in_One_SEO_Pack {
308
  $search = $this->capitalize($search);
309
  $this->pure_title = $search;
310
  $title_format = get_option('aiosp_search_title_format');
311
- $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
312
- $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
313
  $title = str_replace('%search%', $search, $title);
314
  $header = $this->replace_title($header, $title);
315
  } else if (is_category() && !is_feed()) {
@@ -319,24 +319,24 @@ class All_in_One_SEO_Pack {
319
  $title_format = get_option('aiosp_category_title_format');
320
  $title = str_replace('%category_title%', $category_name, $title_format);
321
  $title = str_replace('%category_description%', $category_description, $title);
322
- $title = str_replace('%blog_title%', get_bloginfo('name'), $title);
323
- $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
324
  $header = $this->replace_title($header, $title);
325
  } else if (is_page()) {
326
  if ($this->is_static_front_page()) {
327
  if ($this->internationalize(get_option('aiosp_home_title'))) {
328
- $this->pure_title = get_option('aiosp_home_title');
329
  $header = $this->replace_title($header, get_option('aiosp_home_title'));
330
  }
331
  } else {
332
- $title = get_post_meta($post->ID, "title", true);
333
  if (!$title) {
334
  $title = $this->internationalize(wp_title('', false));
335
  }
336
  $this->pure_title = $title;
337
  $title_format = get_option('aiosp_page_title_format');
338
- $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
339
- $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
340
  $new_title = str_replace('%page_title%', $title, $new_title);
341
  $title = trim($new_title);
342
  $header = $this->replace_title($header, $title);
@@ -355,8 +355,8 @@ class All_in_One_SEO_Pack {
355
  $this->pure_title = $tag;
356
  $tag = $this->capitalize($tag);
357
  $title_format = get_option('aiosp_tag_title_format');
358
- $title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
359
- $title = str_replace('%blog_description%', get_bloginfo('description'), $title);
360
  $title = str_replace('%tag%', $tag, $title);
361
  $header = $this->replace_title($header, $title);
362
  }
@@ -364,15 +364,15 @@ class All_in_One_SEO_Pack {
364
  $date = $this->internationalize(wp_title('', false));
365
  $this->pure_title = $date;
366
  $title_format = get_option('aiosp_archive_title_format');
367
- $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
368
- $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
369
  $new_title = str_replace('%date%', $date, $new_title);
370
  $title = trim($new_title);
371
  $header = $this->replace_title($header, $title);
372
  } else if (is_404()) {
373
  $title_format = get_option('aiosp_404_title_format');
374
- $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
375
- $new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
376
  $new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
377
  $new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
378
  $this->pure_title = $new_title;
@@ -445,7 +445,7 @@ class All_in_One_SEO_Pack {
445
  $keywords_a = $keywords_i = null;
446
  $description_a = $description_i = null;
447
  $id = $post->ID;
448
- $keywords_i = stripcslashes(get_post_meta($post->ID, "keywords", true));
449
  $keywords_i = str_replace('"', '', $keywords_i);
450
  if (isset($keywords_i) && !empty($keywords_i)) {
451
  $keywords[] = $keywords_i;
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.7.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.3.7.2";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
259
 
260
  if (is_home()) {
261
  if ($this->is_static_posts_page()) {
262
+ $title = $this->internationalize(get_post_meta(get_option('page_for_posts'), "title", true));
263
  if (!$title) {
264
  $title = $this->internationalize(wp_title('', false));
265
  }
266
  $this->pure_title = $title;
267
  $title_format = get_option('aiosp_page_title_format');
268
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
269
  $new_title = str_replace('%page_title%', $title, $new_title);
270
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
271
  $title = trim($new_title);
272
  $header = $this->replace_title($header, $title);
273
  } else {
274
  if ($this->internationalize(get_option('aiosp_home_title'))) {
275
+ $header = $this->replace_title($header, $this->internationalize(get_option('aiosp_home_title')));
276
  }
277
  $this->pure_title = get_option('aiosp_home_title');
278
  }
291
  }
292
  $this->pure_title = $title;
293
  $title_format = get_option('aiosp_post_title_format');
294
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
295
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
296
  $new_title = str_replace('%post_title%', $title, $new_title);
297
  $new_title = str_replace('%category%', $category, $new_title);
298
  $new_title = str_replace('%category_title%', $category, $new_title);
308
  $search = $this->capitalize($search);
309
  $this->pure_title = $search;
310
  $title_format = get_option('aiosp_search_title_format');
311
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
312
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
313
  $title = str_replace('%search%', $search, $title);
314
  $header = $this->replace_title($header, $title);
315
  } else if (is_category() && !is_feed()) {
319
  $title_format = get_option('aiosp_category_title_format');
320
  $title = str_replace('%category_title%', $category_name, $title_format);
321
  $title = str_replace('%category_description%', $category_description, $title);
322
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title);
323
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
324
  $header = $this->replace_title($header, $title);
325
  } else if (is_page()) {
326
  if ($this->is_static_front_page()) {
327
  if ($this->internationalize(get_option('aiosp_home_title'))) {
328
+ $this->pure_title = $this->internationalize(get_option('aiosp_home_title'));
329
  $header = $this->replace_title($header, get_option('aiosp_home_title'));
330
  }
331
  } else {
332
+ $title = $this->internationalize(get_post_meta($post->ID, "title", true));
333
  if (!$title) {
334
  $title = $this->internationalize(wp_title('', false));
335
  }
336
  $this->pure_title = $title;
337
  $title_format = get_option('aiosp_page_title_format');
338
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
339
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
340
  $new_title = str_replace('%page_title%', $title, $new_title);
341
  $title = trim($new_title);
342
  $header = $this->replace_title($header, $title);
355
  $this->pure_title = $tag;
356
  $tag = $this->capitalize($tag);
357
  $title_format = get_option('aiosp_tag_title_format');
358
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
359
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
360
  $title = str_replace('%tag%', $tag, $title);
361
  $header = $this->replace_title($header, $title);
362
  }
364
  $date = $this->internationalize(wp_title('', false));
365
  $this->pure_title = $date;
366
  $title_format = get_option('aiosp_archive_title_format');
367
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
368
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
369
  $new_title = str_replace('%date%', $date, $new_title);
370
  $title = trim($new_title);
371
  $header = $this->replace_title($header, $title);
372
  } else if (is_404()) {
373
  $title_format = get_option('aiosp_404_title_format');
374
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
375
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
376
  $new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
377
  $new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
378
  $this->pure_title = $new_title;
445
  $keywords_a = $keywords_i = null;
446
  $description_a = $description_i = null;
447
  $id = $post->ID;
448
+ $keywords_i = stripcslashes($this->internationalize(get_post_meta($post->ID, "keywords", true)));
449
  $keywords_i = str_replace('"', '', $keywords_i);
450
  if (isset($keywords_i) && !empty($keywords_i)) {
451
  $keywords[] = $keywords_i;