Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0 to 1.1
- all_in_one_seo_pack.php +11 -18
- readme.txt +1 -1
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.
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
|
@@ -27,7 +27,7 @@ Author URI: http://wp.uberdose.com/
|
|
| 27 |
|
| 28 |
class All_in_One_SEO_Pack {
|
| 29 |
|
| 30 |
-
var $version = "1.
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Number of words to be used (max) for generating an excerpt.
|
|
@@ -40,11 +40,15 @@ class All_in_One_SEO_Pack {
|
|
| 40 |
*/
|
| 41 |
var $minimum_excerpt_length = 1;
|
| 42 |
|
| 43 |
-
function
|
| 44 |
if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
|
| 45 |
$this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
|
| 46 |
}
|
| 47 |
-
ob_start();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
function init_textdomain() {
|
|
@@ -60,8 +64,6 @@ class All_in_One_SEO_Pack {
|
|
| 60 |
global $post;
|
| 61 |
$meta_string = null;
|
| 62 |
|
| 63 |
-
$this->rewrite_title();
|
| 64 |
-
|
| 65 |
echo "<!-- all in one seo pack $this->version -->\n";
|
| 66 |
|
| 67 |
if (is_home() && get_option('aiosp_home_keywords')) {
|
|
@@ -117,7 +119,7 @@ class All_in_One_SEO_Pack {
|
|
| 117 |
}
|
| 118 |
}
|
| 119 |
|
| 120 |
-
function rewrite_title() {
|
| 121 |
global $post;
|
| 122 |
|
| 123 |
if (is_home()) {
|
|
@@ -127,8 +129,6 @@ class All_in_One_SEO_Pack {
|
|
| 127 |
} else if (is_category() && get_option('aiosp_use_category_description_as_title')) {
|
| 128 |
$title = category_description();
|
| 129 |
}
|
| 130 |
-
$header = ob_get_contents();
|
| 131 |
-
ob_end_clean();
|
| 132 |
|
| 133 |
if ($title) {
|
| 134 |
$title = addslashes($title);
|
|
@@ -158,14 +158,7 @@ class All_in_One_SEO_Pack {
|
|
| 158 |
}
|
| 159 |
}
|
| 160 |
|
| 161 |
-
|
| 162 |
-
// invoke this on the default theme and nothing gets written
|
| 163 |
-
// invoke on semiologic and an error occurrs:
|
| 164 |
-
// "Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /Users/dirk/Documents/workspace/wp/wp-includes/functions.php on line 419"
|
| 165 |
-
gzip_compression();
|
| 166 |
-
}
|
| 167 |
-
|
| 168 |
-
print($header);
|
| 169 |
}
|
| 170 |
|
| 171 |
function trim_excerpt_without_filters($text) {
|
|
@@ -485,7 +478,7 @@ add_option("aiosp_title_format", '%post_title% | %blog_title%', __('All in One S
|
|
| 485 |
|
| 486 |
$aiosp = new All_in_One_SEO_Pack();
|
| 487 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 488 |
-
add_action('
|
| 489 |
|
| 490 |
add_action('init', array($aiosp, 'init_textdomain'));
|
| 491 |
|
| 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.1
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 27 |
|
| 28 |
class All_in_One_SEO_Pack {
|
| 29 |
|
| 30 |
+
var $version = "1.1";
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Number of words to be used (max) for generating an excerpt.
|
| 40 |
*/
|
| 41 |
var $minimum_excerpt_length = 1;
|
| 42 |
|
| 43 |
+
function template_redirect() {
|
| 44 |
if (get_option('aiosp_max_words_excerpt') && is_numeric(get_option('aiosp_max_words_excerpt'))) {
|
| 45 |
$this->maximum_excerpt_length = get_option('aiosp_max_words_excerpt');
|
| 46 |
}
|
| 47 |
+
ob_start(array($this, 'output_callback_for_title'));
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
function output_callback_for_title($content) {
|
| 51 |
+
return $this->rewrite_title($content);
|
| 52 |
}
|
| 53 |
|
| 54 |
function init_textdomain() {
|
| 64 |
global $post;
|
| 65 |
$meta_string = null;
|
| 66 |
|
|
|
|
|
|
|
| 67 |
echo "<!-- all in one seo pack $this->version -->\n";
|
| 68 |
|
| 69 |
if (is_home() && get_option('aiosp_home_keywords')) {
|
| 119 |
}
|
| 120 |
}
|
| 121 |
|
| 122 |
+
function rewrite_title($header) {
|
| 123 |
global $post;
|
| 124 |
|
| 125 |
if (is_home()) {
|
| 129 |
} else if (is_category() && get_option('aiosp_use_category_description_as_title')) {
|
| 130 |
$title = category_description();
|
| 131 |
}
|
|
|
|
|
|
|
| 132 |
|
| 133 |
if ($title) {
|
| 134 |
$title = addslashes($title);
|
| 158 |
}
|
| 159 |
}
|
| 160 |
|
| 161 |
+
return $header;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
}
|
| 163 |
|
| 164 |
function trim_excerpt_without_filters($text) {
|
| 478 |
|
| 479 |
$aiosp = new All_in_One_SEO_Pack();
|
| 480 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 481 |
+
add_action('template_redirect', array($aiosp, 'template_redirect'));
|
| 482 |
|
| 483 |
add_action('init', array($aiosp, 'init_textdomain'));
|
| 484 |
|
readme.txt
CHANGED
|
@@ -18,8 +18,8 @@ Optimizes your Wordpress blog for Search Engines (Search Engine Optimization).
|
|
| 18 |
|
| 19 |
**[Download now!](http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)**
|
| 20 |
|
| 21 |
-
* [See what users are saying](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#comments)
|
| 22 |
* [SEO Manual](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)
|
|
|
|
| 23 |
* [Get Help](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond)
|
| 24 |
|
| 25 |
== Installation ==
|
| 18 |
|
| 19 |
**[Download now!](http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip)**
|
| 20 |
|
|
|
|
| 21 |
* [SEO Manual](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/)
|
| 22 |
+
* [See what users are saying](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#comments)
|
| 23 |
* [Get Help](http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond)
|
| 24 |
|
| 25 |
== Installation ==
|
