Version Description
Download this release
Release Info
| Developer | hallsofmontezuma |
| Plugin | |
| Version | 1.4.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.8 to 1.4.9
- all_in_one_seo_pack.php +31 -10
- readme.txt +1 -0
all_in_one_seo_pack.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://semperfiwebdesign.com
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
|
| 7 |
-
Version: 1.4.
|
| 8 |
Author: Michael Torbert
|
| 9 |
Author URI: http://semperfiwebdesign.com
|
| 10 |
*/
|
|
@@ -476,7 +476,7 @@ $UTF8_TABLES['strtoupper'] = array(
|
|
| 476 |
|
| 477 |
class All_in_One_SEO_Pack {
|
| 478 |
|
| 479 |
-
var $version = "1.4.
|
| 480 |
|
| 481 |
/** Max numbers of chars in auto-generated description */
|
| 482 |
var $maximum_description_length = 160;
|
|
@@ -747,7 +747,7 @@ class All_in_One_SEO_Pack {
|
|
| 747 |
if(get_option('aiosp_can')){
|
| 748 |
$url = $this->aiosp_mrt_get_url($wp_query);
|
| 749 |
if ($url) {
|
| 750 |
-
echo "".'<link rel="canonical" href="'.$url.'"/>'."\n";
|
| 751 |
}
|
| 752 |
}
|
| 753 |
|
|
@@ -781,8 +781,8 @@ class All_in_One_SEO_Pack {
|
|
| 781 |
} elseif (($query->is_single || $query->is_page) && $haspost) {
|
| 782 |
$post = $query->posts[0];
|
| 783 |
$link = get_permalink($post->ID);
|
| 784 |
-
$
|
| 785 |
-
if ($page && $page > 1) {
|
| 786 |
$link = trailingslashit($link) . "page/". "$page";
|
| 787 |
if ($has_ut) {
|
| 788 |
$link = user_trailingslashit($link, 'paged');
|
|
@@ -794,7 +794,7 @@ class All_in_One_SEO_Pack {
|
|
| 794 |
$post->ID == get_option('page_on_front'))
|
| 795 |
{
|
| 796 |
$link = trailingslashit($link);
|
| 797 |
-
}
|
| 798 |
} elseif ($query->is_author && $haspost) {
|
| 799 |
global $wp_version;
|
| 800 |
if ($wp_version >= '2') {
|
|
@@ -811,6 +811,13 @@ class All_in_One_SEO_Pack {
|
|
| 811 |
}
|
| 812 |
} elseif ($query->is_category && $haspost) {
|
| 813 |
$link = get_category_link(get_query_var('cat'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 814 |
} elseif ($query->is_day && $haspost) {
|
| 815 |
$link = get_day_link(get_query_var('year'),
|
| 816 |
get_query_var('monthnum'),
|
|
@@ -824,10 +831,13 @@ class All_in_One_SEO_Pack {
|
|
| 824 |
if ((get_option('show_on_front') == 'page') &&
|
| 825 |
($pageid = get_option('page_for_posts')))
|
| 826 |
{
|
| 827 |
-
$link =
|
|
|
|
|
|
|
| 828 |
} else {
|
| 829 |
-
$link =
|
| 830 |
-
|
|
|
|
| 831 |
} else {
|
| 832 |
return false;
|
| 833 |
}
|
|
@@ -837,7 +847,18 @@ class All_in_One_SEO_Pack {
|
|
| 837 |
}
|
| 838 |
|
| 839 |
|
| 840 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 841 |
|
| 842 |
|
| 843 |
function get_post_description($post) {
|
| 4 |
Plugin Name: All in One SEO Pack
|
| 5 |
Plugin URI: http://semperfiwebdesign.com
|
| 6 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/all_in_one_seo_pack.php">Options configuration panel</a> | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8">Donate</a> | <a href="http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/" >Support</a>
|
| 7 |
+
Version: 1.4.9
|
| 8 |
Author: Michael Torbert
|
| 9 |
Author URI: http://semperfiwebdesign.com
|
| 10 |
*/
|
| 476 |
|
| 477 |
class All_in_One_SEO_Pack {
|
| 478 |
|
| 479 |
+
var $version = "1.4.9";
|
| 480 |
|
| 481 |
/** Max numbers of chars in auto-generated description */
|
| 482 |
var $maximum_description_length = 160;
|
| 747 |
if(get_option('aiosp_can')){
|
| 748 |
$url = $this->aiosp_mrt_get_url($wp_query);
|
| 749 |
if ($url) {
|
| 750 |
+
echo "".'<link rel="canonical" href="'.$url.'" />'."\n";
|
| 751 |
}
|
| 752 |
}
|
| 753 |
|
| 781 |
} elseif (($query->is_single || $query->is_page) && $haspost) {
|
| 782 |
$post = $query->posts[0];
|
| 783 |
$link = get_permalink($post->ID);
|
| 784 |
+
$link = $this->yoast_get_paged($link);
|
| 785 |
+
/* if ($page && $page > 1) {
|
| 786 |
$link = trailingslashit($link) . "page/". "$page";
|
| 787 |
if ($has_ut) {
|
| 788 |
$link = user_trailingslashit($link, 'paged');
|
| 794 |
$post->ID == get_option('page_on_front'))
|
| 795 |
{
|
| 796 |
$link = trailingslashit($link);
|
| 797 |
+
}*/
|
| 798 |
} elseif ($query->is_author && $haspost) {
|
| 799 |
global $wp_version;
|
| 800 |
if ($wp_version >= '2') {
|
| 811 |
}
|
| 812 |
} elseif ($query->is_category && $haspost) {
|
| 813 |
$link = get_category_link(get_query_var('cat'));
|
| 814 |
+
$link = $this->yoast_get_paged($link);
|
| 815 |
+
} else if ($query->is_tag && $haspost) {
|
| 816 |
+
$tag = get_term_by('slug',get_query_var('tag'),'post_tag');
|
| 817 |
+
if (!empty($tag->term_id)) {
|
| 818 |
+
$link = get_tag_link($tag->term_id);
|
| 819 |
+
}
|
| 820 |
+
$link = $this->yoast_get_paged($link);
|
| 821 |
} elseif ($query->is_day && $haspost) {
|
| 822 |
$link = get_day_link(get_query_var('year'),
|
| 823 |
get_query_var('monthnum'),
|
| 831 |
if ((get_option('show_on_front') == 'page') &&
|
| 832 |
($pageid = get_option('page_for_posts')))
|
| 833 |
{
|
| 834 |
+
$link = get_permalink($pageid);
|
| 835 |
+
$link = $this->yoast_get_paged($link);
|
| 836 |
+
$link = trailingslashit($link);
|
| 837 |
} else {
|
| 838 |
+
$link = get_option('home');
|
| 839 |
+
$link = $this->yoast_get_paged($link);
|
| 840 |
+
$link = trailingslashit($link); }
|
| 841 |
} else {
|
| 842 |
return false;
|
| 843 |
}
|
| 847 |
}
|
| 848 |
|
| 849 |
|
| 850 |
+
function yoast_get_paged($link) {
|
| 851 |
+
$page = get_query_var('paged');
|
| 852 |
+
if ($page && $page > 1) {
|
| 853 |
+
$link = trailingslashit($link) ."page/". "$page";
|
| 854 |
+
if ($has_ut) {
|
| 855 |
+
$link = user_trailingslashit($link, 'paged');
|
| 856 |
+
} else {
|
| 857 |
+
$link .= '/';
|
| 858 |
+
}
|
| 859 |
+
}
|
| 860 |
+
return $link;
|
| 861 |
+
}
|
| 862 |
|
| 863 |
|
| 864 |
function get_post_description($post) {
|
readme.txt
CHANGED
|
@@ -21,6 +21,7 @@ Automatically optimizes your Wordpress blog for Search Engines (Search Engine Op
|
|
| 21 |
|
| 22 |
Some features:
|
| 23 |
|
|
|
|
| 24 |
* Automatically optimizes your **titles** for search engines
|
| 25 |
* Generates **META tags automatically**
|
| 26 |
* Avoids the typical duplicate content found on Wordpress blogs
|
| 21 |
|
| 22 |
Some features:
|
| 23 |
|
| 24 |
+
**Canonical URLs
|
| 25 |
* Automatically optimizes your **titles** for search engines
|
| 26 |
* Generates **META tags automatically**
|
| 27 |
* Avoids the typical duplicate content found on Wordpress blogs
|
