All in One SEO Pack - Version 1.2.3.9

Version Description

Download this release

Release Info

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

Code changes from version 1.2.3.8 to 1.2.3.9

Files changed (1) hide show
  1. all_in_one_seo_pack.php +7 -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.3.8
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.8";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
@@ -144,6 +144,11 @@ class All_in_One_SEO_Pack {
144
 
145
  function rewrite_title($header) {
146
  global $wp_query;
 
 
 
 
 
147
  $post = $wp_query->get_queried_object();
148
 
149
  // the_search_query() is not suitable, it cannot just return
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.9
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.9";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
144
 
145
  function rewrite_title($header) {
146
  global $wp_query;
147
+ if (!$wp_query) {
148
+ $header .= "<!-- no wp_query found! -->\n";
149
+ return $header;
150
+ }
151
+
152
  $post = $wp_query->get_queried_object();
153
 
154
  // the_search_query() is not suitable, it cannot just return