Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.2.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.8.9 to 1.2.9
- all_in_one_seo_pack.php +5 -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.
|
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.
|
32 |
|
33 |
/**
|
34 |
* Max numbers of chars in auto-generated description.
|
@@ -141,6 +141,7 @@ class All_in_One_SEO_Pack {
|
|
141 |
}
|
142 |
|
143 |
if (isset($description) && strlen($description) > $this->minimum_description_length) {
|
|
|
144 |
$description = str_replace('"', '', $description);
|
145 |
|
146 |
// replace newlines on mac / windows?
|
@@ -151,6 +152,8 @@ class All_in_One_SEO_Pack {
|
|
151 |
|
152 |
if (isset($meta_string)) {
|
153 |
$meta_string .= "\n";
|
|
|
|
|
154 |
}
|
155 |
$meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
|
156 |
}
|
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.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.9";
|
32 |
|
33 |
/**
|
34 |
* Max numbers of chars in auto-generated description.
|
141 |
}
|
142 |
|
143 |
if (isset($description) && strlen($description) > $this->minimum_description_length) {
|
144 |
+
$description = trim(strip_tags($description));
|
145 |
$description = str_replace('"', '', $description);
|
146 |
|
147 |
// replace newlines on mac / windows?
|
152 |
|
153 |
if (isset($meta_string)) {
|
154 |
$meta_string .= "\n";
|
155 |
+
} else {
|
156 |
+
$meta_string = '';
|
157 |
}
|
158 |
$meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
|
159 |
}
|