All in One SEO Pack - Version 1.3.3

Version Description

Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.3

all_in_one_seo_pack-zh_CN.mo CHANGED
Binary file
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.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.1";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -381,24 +381,15 @@ class All_in_One_SEO_Pack {
381
  if (is_array($posts)) {
382
  foreach ($posts as $post) {
383
  if ($post) {
384
- if (get_option('aiosp_use_categories') && !is_page()) {
385
- $categories = get_the_category($post->ID);
386
- foreach ($categories as $category) {
387
- $keywords[] = $category->cat_name;
388
- }
389
- }
390
 
391
- // Ultimate Tag Warrior integration
392
- global $utw;
393
- if ($utw) {
394
- $tags = $utw->GetTagsForPost($post);
395
- foreach ($tags as $tag) {
396
- $tag = $tag->tag;
397
- $tag = str_replace('_',' ', $tag);
398
- $tag = str_replace('-',' ',$tag);
399
- $tag = stripslashes($tag);
400
- $keywords[] = $tag;
401
- }
402
  }
403
 
404
  // WP 2.3 tags
@@ -411,14 +402,17 @@ class All_in_One_SEO_Pack {
411
  }
412
  }
413
 
414
- // custom field keywords
415
- $keywords_a = $keywords_i = null;
416
- $description_a = $description_i = null;
417
- $id = $post->ID;
418
- $keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
419
- $keywords_i = str_replace('"', '', $keywords_i);
420
- if (isset($keywords_i) && !empty($keywords_i)) {
421
- $keywords[] = $keywords_i;
 
 
 
422
  }
423
 
424
  // autometa
@@ -429,6 +423,14 @@ class All_in_One_SEO_Pack {
429
  $keywords[] = $e;
430
  }
431
  }
 
 
 
 
 
 
 
 
432
  }
433
  }
434
  }
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.3
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.3";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
381
  if (is_array($posts)) {
382
  foreach ($posts as $post) {
383
  if ($post) {
 
 
 
 
 
 
384
 
385
+ // custom field keywords
386
+ $keywords_a = $keywords_i = null;
387
+ $description_a = $description_i = null;
388
+ $id = $post->ID;
389
+ $keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
390
+ $keywords_i = str_replace('"', '', $keywords_i);
391
+ if (isset($keywords_i) && !empty($keywords_i)) {
392
+ $keywords[] = $keywords_i;
 
 
 
393
  }
394
 
395
  // WP 2.3 tags
402
  }
403
  }
404
 
405
+ // Ultimate Tag Warrior integration
406
+ global $utw;
407
+ if ($utw) {
408
+ $tags = $utw->GetTagsForPost($post);
409
+ foreach ($tags as $tag) {
410
+ $tag = $tag->tag;
411
+ $tag = str_replace('_',' ', $tag);
412
+ $tag = str_replace('-',' ',$tag);
413
+ $tag = stripslashes($tag);
414
+ $keywords[] = $tag;
415
+ }
416
  }
417
 
418
  // autometa
423
  $keywords[] = $e;
424
  }
425
  }
426
+
427
+ if (get_option('aiosp_use_categories') && !is_page()) {
428
+ $categories = get_the_category($post->ID);
429
+ foreach ($categories as $category) {
430
+ $keywords[] = $category->cat_name;
431
+ }
432
+ }
433
+
434
  }
435
  }
436
  }