Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.2.5.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.5.8 to 1.2.5.9
- all_in_one_seo_pack.php +16 -6
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.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.5.
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
|
@@ -148,10 +148,20 @@ class All_in_One_SEO_Pack {
|
|
| 148 |
}
|
| 149 |
|
| 150 |
function replace_title($content, $title) {
|
| 151 |
-
$
|
| 152 |
-
$
|
| 153 |
-
|
| 154 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
return $header;
|
| 156 |
}
|
| 157 |
|
| 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.5.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.5.9";
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Number of words to be used (max) for generating an excerpt.
|
| 148 |
}
|
| 149 |
|
| 150 |
function replace_title($content, $title) {
|
| 151 |
+
$title_tag_start = "<title>";
|
| 152 |
+
$title_tag_end = "</title>";
|
| 153 |
+
$len_start = strlen($title_tag_start);
|
| 154 |
+
$len_end = strlen($title_tag_end);
|
| 155 |
+
$title = stripslashes(trim($title));
|
| 156 |
+
$start = stripos($content, "<title>");
|
| 157 |
+
$end = stripos($content, "</title>");
|
| 158 |
+
|
| 159 |
+
if ($start && $end) {
|
| 160 |
+
$header = substr($content, 0, $start + $len_start) . $title . substr($content, $end);
|
| 161 |
+
} else {
|
| 162 |
+
$header = $content . "<title>$title</title>";
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
return $header;
|
| 166 |
}
|
| 167 |
|
