Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- all_in_one_seo_pack.php +18 -5
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 |
*/
|
@@ -27,7 +27,7 @@ Author URI: http://wp.uberdose.com/
|
|
27 |
|
28 |
class All_in_One_SEO_Pack {
|
29 |
|
30 |
-
var $version = "1.2";
|
31 |
|
32 |
/**
|
33 |
* Number of words to be used (max) for generating an excerpt.
|
@@ -103,11 +103,12 @@ class All_in_One_SEO_Pack {
|
|
103 |
if (isset($meta_string)) {
|
104 |
$meta_string .= "\n";
|
105 |
}
|
106 |
-
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"
|
107 |
}
|
108 |
|
109 |
if((is_category() && get_option('aiosp_category_noindex')) ||
|
110 |
-
(!is_category() && is_archive() && get_option('aiosp_archive_noindex'))
|
|
|
111 |
if (isset($meta_string)) {
|
112 |
$meta_string .= "\n";
|
113 |
}
|
@@ -115,7 +116,7 @@ class All_in_One_SEO_Pack {
|
|
115 |
}
|
116 |
|
117 |
if ($meta_string != null) {
|
118 |
-
echo $meta_string;
|
119 |
}
|
120 |
}
|
121 |
|
@@ -333,6 +334,7 @@ class All_in_One_SEO_Pack {
|
|
333 |
update_option('aiosp_use_category_description_as_title', $_POST['aiosp_use_category_description_as_title']);
|
334 |
update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
|
335 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
|
|
336 |
update_option('aiosp_generate_descriptions', $_POST['aiosp_generate_descriptions']);
|
337 |
wp_cache_flush();
|
338 |
}
|
@@ -442,6 +444,16 @@ class All_in_One_SEO_Pack {
|
|
442 |
</tr>
|
443 |
<tr>
|
444 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
<a target="_blank" title="<?php _e('Help for Autogenerate Descriptions', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#autogeneratedescriptions">
|
446 |
<?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
|
447 |
</a>
|
@@ -482,6 +494,7 @@ add_option("aiosp_max_words_excerpt", 25, __('All in One SEO Plugin Maximum Numb
|
|
482 |
add_option("aiosp_use_category_description_as_title", 0, __('Use Category Description for Title', 'all_in_one_seo_pack'), 'yes');
|
483 |
add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Categories', 'all_in_one_seo_pack'), 'yes');
|
484 |
add_option("aiosp_archive_noindex", 1, __('All in One SEO Plugin Noindex for Archives', 'all_in_one_seo_pack'), 'yes');
|
|
|
485 |
add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogenerate Descriptions', 'all_in_one_seo_pack'), 'yes');
|
486 |
add_option("aiosp_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Title Format', 'all_in_one_seo_pack'), 'yes');
|
487 |
|
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 |
|
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.
|
103 |
if (isset($meta_string)) {
|
104 |
$meta_string .= "\n";
|
105 |
}
|
106 |
+
$meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\"/>", $keywords);
|
107 |
}
|
108 |
|
109 |
if((is_category() && get_option('aiosp_category_noindex')) ||
|
110 |
+
(!is_category() && is_archive() && get_option('aiosp_archive_noindex')) ||
|
111 |
+
(is_tag() && get_option('aiosp_tags_noindex'))) {
|
112 |
if (isset($meta_string)) {
|
113 |
$meta_string .= "\n";
|
114 |
}
|
116 |
}
|
117 |
|
118 |
if ($meta_string != null) {
|
119 |
+
echo "$meta_string\n";
|
120 |
}
|
121 |
}
|
122 |
|
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']);
|
336 |
update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
|
337 |
+
update_option('aiosp_tag_noindex', $_POST['aiosp_tag_noindex']);
|
338 |
update_option('aiosp_generate_descriptions', $_POST['aiosp_generate_descriptions']);
|
339 |
wp_cache_flush();
|
340 |
}
|
444 |
</tr>
|
445 |
<tr>
|
446 |
<th scope="row" style="text-align:right; vertical-align:top;">
|
447 |
+
<a target="_blank" title="<?php _e('Help for Option noindex for Tag Archives', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#usenoindexfortagarchives">
|
448 |
+
<?php _e('Use noindex for Tag Archives:', 'all_in_one_seo_pack')?>
|
449 |
+
</a>
|
450 |
+
</td>
|
451 |
+
<td>
|
452 |
+
<input type="checkbox" name="aiosp_tag_noindex" <?php if (get_option('aiosp_tag_noindex')) echo "checked=\"1\""; ?>/>
|
453 |
+
</td>
|
454 |
+
</tr>
|
455 |
+
<tr>
|
456 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
457 |
<a target="_blank" title="<?php _e('Help for Autogenerate Descriptions', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#autogeneratedescriptions">
|
458 |
<?php _e('Autogenerate Descriptions:', 'all_in_one_seo_pack')?>
|
459 |
</a>
|
494 |
add_option("aiosp_use_category_description_as_title", 0, __('Use Category Description for Title', 'all_in_one_seo_pack'), 'yes');
|
495 |
add_option("aiosp_category_noindex", 1, __('All in One SEO Plugin Noindex for Categories', 'all_in_one_seo_pack'), 'yes');
|
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_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Title Format', 'all_in_one_seo_pack'), 'yes');
|
500 |
|