Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.4.5.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.5.5 to 1.4.5.7
- all_in_one_seo_pack-ja.mo +0 -0
- all_in_one_seo_pack.php +17 -27
- readme.txt +5 -2
all_in_one_seo_pack-ja.mo
CHANGED
|
Binary file
|
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.4.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.4.5.
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
|
@@ -138,13 +138,15 @@ class All_in_One_SEO_Pack {
|
|
| 138 |
$post = $wp_query->get_queried_object();
|
| 139 |
$meta_string = null;
|
| 140 |
|
|
|
|
|
|
|
| 141 |
if (is_single() || is_page()) {
|
| 142 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'aiosp_disable', true)));
|
| 143 |
if ($aiosp_disable) {
|
| 144 |
return;
|
| 145 |
}
|
| 146 |
}
|
| 147 |
-
|
| 148 |
if (get_option('aiosp_rewrite_titles')) {
|
| 149 |
// make the title rewrite as short as possible
|
| 150 |
if (function_exists('ob_list_handlers')) {
|
|
@@ -173,7 +175,7 @@ class All_in_One_SEO_Pack {
|
|
| 173 |
echo "[$this->title_start,$this->title_end] ";
|
| 174 |
echo "-->\n";
|
| 175 |
|
| 176 |
-
if ((is_home() &&
|
| 177 |
$keywords = trim($this->internationalize(get_option('aiosp_home_keywords')));
|
| 178 |
} else {
|
| 179 |
$keywords = $this->get_all_keywords();
|
|
@@ -185,11 +187,7 @@ class All_in_One_SEO_Pack {
|
|
| 185 |
$description = $this->get_post_description($post);
|
| 186 |
}
|
| 187 |
} else if (is_home()) {
|
| 188 |
-
|
| 189 |
-
$description = $this->get_post_description(get_post(get_option('page_for_posts')));
|
| 190 |
-
} else {
|
| 191 |
-
$description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
|
| 192 |
-
}
|
| 193 |
} else if (is_category()) {
|
| 194 |
$description = $this->internationalize(category_description());
|
| 195 |
}
|
|
@@ -412,25 +410,12 @@ class All_in_One_SEO_Pack {
|
|
| 412 |
global $STagging;
|
| 413 |
|
| 414 |
if (is_home()) {
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
$title = $this->internationalize(wp_title('', false));
|
| 419 |
-
}
|
| 420 |
-
$title_format = get_option('aiosp_page_title_format');
|
| 421 |
-
$new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
|
| 422 |
-
$new_title = str_replace('%page_title%', $title, $new_title);
|
| 423 |
-
$new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
|
| 424 |
-
$title = trim($new_title);
|
| 425 |
-
$header = $this->replace_title($header, $title);
|
| 426 |
-
} else {
|
| 427 |
-
$title = $this->internationalize(get_option('aiosp_home_title'));
|
| 428 |
-
if (empty($title)) {
|
| 429 |
-
$title = $this->internationalize(get_option('blogname'));
|
| 430 |
-
}
|
| 431 |
-
$title = $this->paged_title($title);
|
| 432 |
-
$header = $this->replace_title($header, $title);
|
| 433 |
}
|
|
|
|
|
|
|
| 434 |
} else if (is_single()) {
|
| 435 |
$categories = get_the_category();
|
| 436 |
$category = '';
|
|
@@ -601,6 +586,11 @@ class All_in_One_SEO_Pack {
|
|
| 601 |
if (is_404()) {
|
| 602 |
return null;
|
| 603 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
|
| 605 |
$keywords = array();
|
| 606 |
if (is_array($posts)) {
|
| 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.4.5.7
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
+
var $version = "1.4.5.7";
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
| 138 |
$post = $wp_query->get_queried_object();
|
| 139 |
$meta_string = null;
|
| 140 |
|
| 141 |
+
//echo("wp_head() " . wp_title('', false) . " is_home() => " . is_home() . ", is_page() => " . is_page() . ", is_single() => " . is_single() . ", is_static_front_page() => " . $this->is_static_front_page() . ", is_static_posts_page() => " . $this->is_static_posts_page());
|
| 142 |
+
|
| 143 |
if (is_single() || is_page()) {
|
| 144 |
$aiosp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'aiosp_disable', true)));
|
| 145 |
if ($aiosp_disable) {
|
| 146 |
return;
|
| 147 |
}
|
| 148 |
}
|
| 149 |
+
|
| 150 |
if (get_option('aiosp_rewrite_titles')) {
|
| 151 |
// make the title rewrite as short as possible
|
| 152 |
if (function_exists('ob_list_handlers')) {
|
| 175 |
echo "[$this->title_start,$this->title_end] ";
|
| 176 |
echo "-->\n";
|
| 177 |
|
| 178 |
+
if ((is_home() && get_option('aiosp_home_keywords')) || $this->is_static_front_page()) {
|
| 179 |
$keywords = trim($this->internationalize(get_option('aiosp_home_keywords')));
|
| 180 |
} else {
|
| 181 |
$keywords = $this->get_all_keywords();
|
| 187 |
$description = $this->get_post_description($post);
|
| 188 |
}
|
| 189 |
} else if (is_home()) {
|
| 190 |
+
$description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
} else if (is_category()) {
|
| 192 |
$description = $this->internationalize(category_description());
|
| 193 |
}
|
| 410 |
global $STagging;
|
| 411 |
|
| 412 |
if (is_home()) {
|
| 413 |
+
$title = $this->internationalize(get_option('aiosp_home_title'));
|
| 414 |
+
if (empty($title)) {
|
| 415 |
+
$title = $this->internationalize(get_option('blogname'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 416 |
}
|
| 417 |
+
$title = $this->paged_title($title);
|
| 418 |
+
$header = $this->replace_title($header, $title);
|
| 419 |
} else if (is_single()) {
|
| 420 |
$categories = get_the_category();
|
| 421 |
$category = '';
|
| 586 |
if (is_404()) {
|
| 587 |
return null;
|
| 588 |
}
|
| 589 |
+
|
| 590 |
+
// if we are on synthetic pages
|
| 591 |
+
if (!is_home() && !is_page() && !is_single() &&!$this->is_static_front_page() && !$this->is_static_posts_page()) {
|
| 592 |
+
return null;
|
| 593 |
+
}
|
| 594 |
|
| 595 |
$keywords = array();
|
| 596 |
if (is_array($posts)) {
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: uberdose
|
|
| 3 |
Donate link: http://wp.uberdose.com/contribute/
|
| 4 |
Tags: post,google,seo,meta,meta keywords,meta description,title,posts,plugin
|
| 5 |
Requires at least: 1.5
|
| 6 |
-
Tested up to: 2.3.
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
Automatically optimizes your Wordpress blog for Search Engines (Search Engine Optimization).
|
|
@@ -34,7 +34,10 @@ Some features:
|
|
| 34 |
the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
|
| 35 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
| 36 |
1. Visit your SEO options (*Options - All in One SEO*)
|
| 37 |
-
1. That's it!
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
== Frequently Asked Questions ==
|
| 40 |
|
| 3 |
Donate link: http://wp.uberdose.com/contribute/
|
| 4 |
Tags: post,google,seo,meta,meta keywords,meta description,title,posts,plugin
|
| 5 |
Requires at least: 1.5
|
| 6 |
+
Tested up to: 2.3.3
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
Automatically optimizes your Wordpress blog for Search Engines (Search Engine Optimization).
|
| 34 |
the top-level folder. Don't just upload all the php files and put them in `/wp-content/plugins/`.
|
| 35 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
| 36 |
1. Visit your SEO options (*Options - All in One SEO*)
|
| 37 |
+
1. That's it!
|
| 38 |
+
|
| 39 |
+
For upgrading please use the built-in one-click updater (*Options - All in One SEO*).
|
| 40 |
+
If you have to upgrade manually simply repeat the installation steps.
|
| 41 |
|
| 42 |
== Frequently Asked Questions ==
|
| 43 |
|
