All in One SEO Pack - Version 1.2.7.6

Version Description

Download this release

Release Info

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

Code changes from version 1.2.7.5 to 1.2.7.6

Files changed (1) hide show
  1. all_in_one_seo_pack.php +26 -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.7.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.7.5";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -400,6 +400,30 @@ class All_in_One_SEO_Pack {
400
  }
401
  }
402
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
403
  $keywords_a = $keywords_i = null;
404
  $description_a = $description_i = null;
405
  $id = $post->ID;
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.7.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.7.6";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
400
  }
401
  }
402
 
403
+ // custom field keywords
404
+ $keywords_a = $keywords_i = null;
405
+ $description_a = $description_i = null;
406
+ $id = $post->ID;
407
+ $keywords_i = stripslashes(get_post_meta($post->ID, "keywords", true));
408
+ $keywords_i = str_replace('"', '', $keywords_i);
409
+ if (isset($keywords_i) && !empty($keywords_i)) {
410
+ $keywords[] = $keywords_i;
411
+ }
412
+ }
413
+ }
414
+ }
415
+
416
+ return $this->get_unique_keywords($keywords);
417
+ }
418
+
419
+ function get_meta_keywords() {
420
+ global $posts;
421
+
422
+ $keywords = array();
423
+ if (is_array($posts)) {
424
+ foreach ($posts as $post) {
425
+ if ($post) {
426
+ // custom field keywords
427
  $keywords_a = $keywords_i = null;
428
  $description_a = $description_i = null;
429
  $id = $post->ID;