Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.2.7.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.7.1 to 1.2.7.2
- all_in_one_seo_pack.php +10 -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.
|
| 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.
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Max numbers of chars in auto-generated description.
|
|
@@ -274,9 +274,17 @@ class All_in_One_SEO_Pack {
|
|
| 274 |
$title = str_replace('%search%', $search, $title);
|
| 275 |
$header = $this->replace_title($header, $title);
|
| 276 |
} else if (is_category() && !is_feed()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
$category_name = ucwords(single_cat_title('', false));
|
| 278 |
$title_format = get_option('aiosp_category_title_format');
|
| 279 |
$title = str_replace('%category_title%', $category_name, $title_format);
|
|
|
|
| 280 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title);
|
| 281 |
$header = $this->replace_title($header, $title);
|
| 282 |
} else if (is_page()) {
|
| 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.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.2.7.2";
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Max numbers of chars in auto-generated description.
|
| 274 |
$title = str_replace('%search%', $search, $title);
|
| 275 |
$header = $this->replace_title($header, $title);
|
| 276 |
} else if (is_category() && !is_feed()) {
|
| 277 |
+
$categories = get_the_category();
|
| 278 |
+
$category_description = '';
|
| 279 |
+
if (count($categories) > 0) {
|
| 280 |
+
$category = $categories[0];
|
| 281 |
+
$category_description = $category->category_description;
|
| 282 |
+
}
|
| 283 |
+
$header .= $category;
|
| 284 |
$category_name = ucwords(single_cat_title('', false));
|
| 285 |
$title_format = get_option('aiosp_category_title_format');
|
| 286 |
$title = str_replace('%category_title%', $category_name, $title_format);
|
| 287 |
+
$title = str_replace('%category_description%', $category_description, $title);
|
| 288 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title);
|
| 289 |
$header = $this->replace_title($header, $title);
|
| 290 |
} else if (is_page()) {
|
