All in One SEO Pack - Version 1.2.3.5

Version Description

Download this release

Release Info

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

Code changes from version 1.2.3.2 to 1.2.3.5

Files changed (1) hide show
  1. all_in_one_seo_pack.php +12 -5
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.3.2
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.3.2";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
@@ -62,7 +62,10 @@ class All_in_One_SEO_Pack {
62
  if (is_feed()) {
63
  return;
64
  }
65
- global $post;
 
 
 
66
  $meta_string = null;
67
 
68
  echo "<!-- all in one seo pack $this->version -->\n";
@@ -129,7 +132,11 @@ class All_in_One_SEO_Pack {
129
  }
130
 
131
  function rewrite_title($header) {
132
- global $post, $s;
 
 
 
 
133
 
134
  if (is_home()) {
135
  if (get_option('aiosp_home_title')) {
@@ -155,7 +162,7 @@ class All_in_One_SEO_Pack {
155
  $title = wp_specialchars(stripslashes($s), true);
156
  }
157
  $header = $this->replace_title($header, $title);
158
- } else if (is_category() && !is_feed) {
159
  $title = category_description();
160
  if (!$title) {
161
  $title = single_cat_title('', false);
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.3.5
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.3.5";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
62
  if (is_feed()) {
63
  return;
64
  }
65
+
66
+ global $wp_query;
67
+ $post = $wp_query->get_queried_object();
68
+
69
  $meta_string = null;
70
 
71
  echo "<!-- all in one seo pack $this->version -->\n";
132
  }
133
 
134
  function rewrite_title($header) {
135
+ global $wp_query;
136
+ $post = $wp_query->get_queried_object();
137
+
138
+ // the_search_query() is not suitable, it cannot just return
139
+ global $s;
140
 
141
  if (is_home()) {
142
  if (get_option('aiosp_home_title')) {
162
  $title = wp_specialchars(stripslashes($s), true);
163
  }
164
  $header = $this->replace_title($header, $title);
165
+ } else if (is_category() && !is_feed()) {
166
  $title = category_description();
167
  if (!$title) {
168
  $title = single_cat_title('', false);