Version Description
Download this release
Release Info
Developer | hallsofmontezuma |
Plugin | All in One SEO Pack |
Version | 1.6.13.8 |
Comparing to | |
See all releases |
Code changes from version 1.6.13.7 to 1.6.13.8
- aioseop.class.php +1 -1
- all_in_one_seo_pack.php +16 -6
- readme.txt +1 -1
aioseop.class.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
class All_in_One_SEO_Pack {
|
4 |
|
5 |
-
var $version = "1.6.13.
|
6 |
|
7 |
/** Max numbers of chars in auto-generated description */
|
8 |
var $maximum_description_length = 160;
|
2 |
|
3 |
class All_in_One_SEO_Pack {
|
4 |
|
5 |
+
var $version = "1.6.13.8";
|
6 |
|
7 |
/** Max numbers of chars in auto-generated description */
|
8 |
var $maximum_description_length = 160;
|
all_in_one_seo_pack.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin Name: All in One SEO Pack
|
6 |
Plugin URI: http://semperfiwebdesign.com
|
7 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/aioseop.class.php">Options configuration panel</a> | <a href="http://wpplugins.com/plugin/50/all-in-one-seo-pack-pro-version">Upgrade to Pro Version</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/forum/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
|
8 |
-
Version: 1.6.13.
|
9 |
Author: Michael Torbert
|
10 |
Author URI: http://michaeltorbert.com
|
11 |
*/
|
@@ -599,7 +599,7 @@ if($aioseop_options['aiosp_can'] == '1' || $aioseop_options['aiosp_can'] == 'on'
|
|
599 |
}
|
600 |
|
601 |
function aioseop_get_version(){
|
602 |
-
return '1.6.13.
|
603 |
}
|
604 |
|
605 |
function add_plugin_row($links, $file) {
|
@@ -721,27 +721,37 @@ if( ($_POST['aiosp_enabled'] == null && $aioseop_options['aiosp_enabled']!='1')
|
|
721 |
|
722 |
// The following two functions are GPLed from Sarah G's Page Menu Editor, http://wordpress.org/extend/plugins/page-menu-editor/.
|
723 |
function aioseop_list_pages($content){
|
|
|
724 |
$matches = array();
|
725 |
if (preg_match_all('/<li class="page_item page-item-(\d+)/i', $content, $matches)) {
|
726 |
update_postmeta_cache(array_values($matches[1]));
|
727 |
unset($matches);
|
728 |
-
|
|
|
|
|
|
|
|
|
729 |
return preg_replace_callback($pattern, "aioseop_filter_callback", $content);
|
730 |
}
|
731 |
return $content;
|
732 |
}
|
733 |
|
734 |
function aioseop_filter_callback($matches) {
|
735 |
-
global $wpdb;
|
|
|
|
|
|
|
|
|
|
|
736 |
if ($matches[1] && !empty($matches[1])) $postID = $matches[1];
|
737 |
if (empty($postID)) $postID = get_option("page_on_front");
|
738 |
$title_attrib = stripslashes(get_post_meta($postID, '_aioseop_titleatr', true));
|
739 |
$menulabel = stripslashes(get_post_meta($postID, '_aioseop_menulabel', true));
|
740 |
-
if (empty($menulabel)) $menulabel = $matches[
|
741 |
if (!empty($title_attrib)) :
|
742 |
$filtered = '<li class="page_item page-item-'.$postID.$matches[2].'"><a href="'.$matches[3].'" title="'.$title_attrib.'">'.$menulabel.'</a>';
|
743 |
else :
|
744 |
-
$filtered = '<li class="page_item page-item-'.$postID.$matches[2].'"><a href="'.$matches[3].'" title="'.$matches[
|
745 |
endif;
|
746 |
return $filtered;
|
747 |
}
|
5 |
Plugin Name: All in One SEO Pack
|
6 |
Plugin URI: http://semperfiwebdesign.com
|
7 |
Description: Out-of-the-box SEO for your Wordpress blog. <a href="options-general.php?page=all-in-one-seo-pack/aioseop.class.php">Options configuration panel</a> | <a href="http://wpplugins.com/plugin/50/all-in-one-seo-pack-pro-version">Upgrade to Pro Version</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/forum/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
|
8 |
+
Version: 1.6.13.8
|
9 |
Author: Michael Torbert
|
10 |
Author URI: http://michaeltorbert.com
|
11 |
*/
|
599 |
}
|
600 |
|
601 |
function aioseop_get_version(){
|
602 |
+
return '1.6.13.8';
|
603 |
}
|
604 |
|
605 |
function add_plugin_row($links, $file) {
|
721 |
|
722 |
// The following two functions are GPLed from Sarah G's Page Menu Editor, http://wordpress.org/extend/plugins/page-menu-editor/.
|
723 |
function aioseop_list_pages($content){
|
724 |
+
global $wp_version;
|
725 |
$matches = array();
|
726 |
if (preg_match_all('/<li class="page_item page-item-(\d+)/i', $content, $matches)) {
|
727 |
update_postmeta_cache(array_values($matches[1]));
|
728 |
unset($matches);
|
729 |
+
if ( $wp_version >= 3.3 ) {
|
730 |
+
$pattern = '@<li class="page_item page-item-(\d+)([^\"]*)"><a href=\"([^\"]+)">(.*?)</a>@is';
|
731 |
+
} else {
|
732 |
+
$pattern = '@<li class="page_item page-item-(\d+)([^\"]*)"><a href=\"([^\"]+)" title="([^\"]+)">(.*?)</a>@is';
|
733 |
+
}
|
734 |
return preg_replace_callback($pattern, "aioseop_filter_callback", $content);
|
735 |
}
|
736 |
return $content;
|
737 |
}
|
738 |
|
739 |
function aioseop_filter_callback($matches) {
|
740 |
+
global $wpdb, $wp_version;
|
741 |
+
if ( $wp_version >= 3.3 ) {
|
742 |
+
$t = 4;
|
743 |
+
} else {
|
744 |
+
$t = 5;
|
745 |
+
}
|
746 |
if ($matches[1] && !empty($matches[1])) $postID = $matches[1];
|
747 |
if (empty($postID)) $postID = get_option("page_on_front");
|
748 |
$title_attrib = stripslashes(get_post_meta($postID, '_aioseop_titleatr', true));
|
749 |
$menulabel = stripslashes(get_post_meta($postID, '_aioseop_menulabel', true));
|
750 |
+
if (empty($menulabel)) $menulabel = $matches[$t];
|
751 |
if (!empty($title_attrib)) :
|
752 |
$filtered = '<li class="page_item page-item-'.$postID.$matches[2].'"><a href="'.$matches[3].'" title="'.$title_attrib.'">'.$menulabel.'</a>';
|
753 |
else :
|
754 |
+
$filtered = '<li class="page_item page-item-'.$postID.$matches[2].'"><a href="'.$matches[3].'" title="'.$matches[$t].'">'.$menulabel.'</a>';
|
755 |
endif;
|
756 |
return $filtered;
|
757 |
}
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.0
|
|
6 |
Tested up to: 3.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
|
6 |
Tested up to: 3.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
+
WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines.
|
10 |
|
11 |
== Description ==
|
12 |
|