Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.2.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.1.1 to 1.2.1.2
- all_in_one_seo_pack.php +6 -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.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.2.1.
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Number of words to be used (max) for generating an excerpt.
|
|
@@ -150,7 +150,7 @@ class All_in_One_SEO_Pack {
|
|
| 150 |
$title = wp_title('', false);
|
| 151 |
}
|
| 152 |
if ($title) {
|
| 153 |
-
$title_format = get_option('
|
| 154 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
| 155 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
| 156 |
$title = $new_title;
|
|
@@ -329,7 +329,7 @@ class All_in_One_SEO_Pack {
|
|
| 329 |
update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
|
| 330 |
update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
|
| 331 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
| 332 |
-
update_option('
|
| 333 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
| 334 |
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
| 335 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
|
@@ -400,7 +400,7 @@ class All_in_One_SEO_Pack {
|
|
| 400 |
</a>
|
| 401 |
</td>
|
| 402 |
<td>
|
| 403 |
-
<input size="59" name="
|
| 404 |
</td>
|
| 405 |
</tr>
|
| 406 |
<tr>
|
|
@@ -496,7 +496,7 @@ add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Ca
|
|
| 496 |
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
| 497 |
add_option("aiosp_tags_noindex", 1, __('All in One SEO Plugin Noindex for Tag Archives', 'all_in_one_seo_pack'), 'yes');
|
| 498 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 499 |
-
add_option("
|
| 500 |
|
| 501 |
$aiosp = new All_in_One_SEO_Pack();
|
| 502 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
| 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.1.2
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 27 |
|
| 28 |
class All_in_One_SEO_Pack {
|
| 29 |
|
| 30 |
+
var $version = "1.2.1.2";
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Number of words to be used (max) for generating an excerpt.
|
| 150 |
$title = wp_title('', false);
|
| 151 |
}
|
| 152 |
if ($title) {
|
| 153 |
+
$title_format = get_option('aiosp_post_title_format');
|
| 154 |
$new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
|
| 155 |
$new_title = str_replace('%post_title%', $title, $new_title);
|
| 156 |
$title = $new_title;
|
| 329 |
update_option('aiosp_home_keywords', $_POST['aiosp_home_keywords']);
|
| 330 |
update_option('aiosp_max_words_excerpt', $_POST['aiosp_max_words_excerpt']);
|
| 331 |
update_option('aiosp_rewrite_titles', $_POST['aiosp_rewrite_titles']);
|
| 332 |
+
update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
|
| 333 |
update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
|
| 334 |
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
| 335 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
| 400 |
</a>
|
| 401 |
</td>
|
| 402 |
<td>
|
| 403 |
+
<input size="59" name="aiosp_post_title_format" value="<?php echo stripcslashes(get_option('aiosp_post_title_format')); ?>"/>
|
| 404 |
</td>
|
| 405 |
</tr>
|
| 406 |
<tr>
|
| 496 |
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
| 497 |
add_option("aiosp_tags_noindex", 1, __('All in One SEO Plugin Noindex for Tag Archives', 'all_in_one_seo_pack'), 'yes');
|
| 498 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
| 499 |
+
add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Title Format', 'all_in_one_seo_pack'), 'yes');
|
| 500 |
|
| 501 |
$aiosp = new All_in_One_SEO_Pack();
|
| 502 |
add_action('wp_head', array($aiosp, 'wp_head'));
|
