Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.2.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.7.4 to 1.2.7.5
- all_in_one_seo_pack.php +9 -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.
|
@@ -233,6 +233,7 @@ class All_in_One_SEO_Pack {
|
|
233 |
$title_format = get_option('aiosp_page_title_format');
|
234 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
235 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
|
|
236 |
$title = trim($new_title);
|
237 |
$header = $this->replace_title($header, $title);
|
238 |
} else {
|
@@ -255,6 +256,7 @@ class All_in_One_SEO_Pack {
|
|
255 |
}
|
256 |
$title_format = get_option('aiosp_post_title_format');
|
257 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
|
|
258 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
259 |
$new_title = str_replace('%category%', $category, $new_title);
|
260 |
$title = $new_title;
|
@@ -269,6 +271,7 @@ class All_in_One_SEO_Pack {
|
|
269 |
$search = $this->capitalize($search);
|
270 |
$title_format = get_option('aiosp_search_title_format');
|
271 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
|
|
272 |
$title = str_replace('%search%', $search, $title);
|
273 |
$header = $this->replace_title($header, $title);
|
274 |
} else if (is_category() && !is_feed()) {
|
@@ -278,6 +281,7 @@ class All_in_One_SEO_Pack {
|
|
278 |
$title = str_replace('%category_title%', $category_name, $title_format);
|
279 |
$title = str_replace('%category_description%', $category_description, $title);
|
280 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title);
|
|
|
281 |
$header = $this->replace_title($header, $title);
|
282 |
} else if (is_page()) {
|
283 |
if ($this->is_static_front_page()) {
|
@@ -291,6 +295,7 @@ class All_in_One_SEO_Pack {
|
|
291 |
}
|
292 |
$title_format = get_option('aiosp_page_title_format');
|
293 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
|
|
294 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
295 |
$title = trim($new_title);
|
296 |
$header = $this->replace_title($header, $title);
|
@@ -309,6 +314,7 @@ class All_in_One_SEO_Pack {
|
|
309 |
$tag = $this->capitalize($tag);
|
310 |
$title_format = get_option('aiosp_tag_title_format');
|
311 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
|
|
312 |
$title = str_replace('%tag%', $tag, $title);
|
313 |
$header = $this->replace_title($header, $title);
|
314 |
}
|
@@ -316,6 +322,7 @@ class All_in_One_SEO_Pack {
|
|
316 |
$date = wp_title('', false);
|
317 |
$title_format = get_option('aiosp_archive_title_format');
|
318 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
|
|
319 |
$new_title = str_replace('%date%', $date, $new_title);
|
320 |
$title = trim($new_title);
|
321 |
$header = $this->replace_title($header, $title);
|
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.5
|
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.5";
|
32 |
|
33 |
/**
|
34 |
* Max numbers of chars in auto-generated description.
|
233 |
$title_format = get_option('aiosp_page_title_format');
|
234 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
235 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
236 |
+
$new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
|
237 |
$title = trim($new_title);
|
238 |
$header = $this->replace_title($header, $title);
|
239 |
} else {
|
256 |
}
|
257 |
$title_format = get_option('aiosp_post_title_format');
|
258 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
259 |
+
$new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
|
260 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
261 |
$new_title = str_replace('%category%', $category, $new_title);
|
262 |
$title = $new_title;
|
271 |
$search = $this->capitalize($search);
|
272 |
$title_format = get_option('aiosp_search_title_format');
|
273 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
274 |
+
$title = str_replace('%blog_description%', get_bloginfo('description'), $title);
|
275 |
$title = str_replace('%search%', $search, $title);
|
276 |
$header = $this->replace_title($header, $title);
|
277 |
} else if (is_category() && !is_feed()) {
|
281 |
$title = str_replace('%category_title%', $category_name, $title_format);
|
282 |
$title = str_replace('%category_description%', $category_description, $title);
|
283 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title);
|
284 |
+
$title = str_replace('%blog_description%', get_bloginfo('description'), $title);
|
285 |
$header = $this->replace_title($header, $title);
|
286 |
} else if (is_page()) {
|
287 |
if ($this->is_static_front_page()) {
|
295 |
}
|
296 |
$title_format = get_option('aiosp_page_title_format');
|
297 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
298 |
+
$new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
|
299 |
$new_title = str_replace('%page_title%', $title, $new_title);
|
300 |
$title = trim($new_title);
|
301 |
$header = $this->replace_title($header, $title);
|
314 |
$tag = $this->capitalize($tag);
|
315 |
$title_format = get_option('aiosp_tag_title_format');
|
316 |
$title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
317 |
+
$title = str_replace('%blog_description%', get_bloginfo('description'), $title);
|
318 |
$title = str_replace('%tag%', $tag, $title);
|
319 |
$header = $this->replace_title($header, $title);
|
320 |
}
|
322 |
$date = wp_title('', false);
|
323 |
$title_format = get_option('aiosp_archive_title_format');
|
324 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
325 |
+
$new_title = str_replace('%blog_description%', get_bloginfo('description'), $new_title);
|
326 |
$new_title = str_replace('%date%', $date, $new_title);
|
327 |
$title = trim($new_title);
|
328 |
$header = $this->replace_title($header, $title);
|