Version Description
Download this release
Release Info
| Developer | pbaylies |
| Plugin | |
| Version | 2.0.3.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.3 to 2.0.3.1
- aioseop_class.php +18 -11
- aioseop_module_class.php +7 -3
- all_in_one_seo_pack-ru_RU.mo +0 -0
- all_in_one_seo_pack.php +3 -3
- images/question.png +0 -0
- readme.txt +6 -1
aioseop_class.php
CHANGED
|
@@ -760,7 +760,9 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 760 |
|
| 761 |
function get_current_options( $opts = Array(), $location = null, $defaults = null, $post = null ) {
|
| 762 |
if ( ( $location === 'aiosp' ) && ( $this->locations[$location]['type'] == 'metabox' ) ) {
|
| 763 |
-
|
|
|
|
|
|
|
| 764 |
$post_id = $post;
|
| 765 |
if ( is_object( $post_id ) )
|
| 766 |
$post_id = $post_id->ID;
|
|
@@ -1250,8 +1252,17 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 1250 |
$page = $this->get_page_number();
|
| 1251 |
if ( $page > 1 )
|
| 1252 |
$prev = get_previous_posts_page_link();
|
| 1253 |
-
if ( $page < $max_page )
|
| 1254 |
-
$next = get_next_posts_page_link( $max_page );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1255 |
} else if ( is_page() || is_single() ) {
|
| 1256 |
$numpages = 1;
|
| 1257 |
$multipage = 0;
|
|
@@ -1305,6 +1316,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 1305 |
|
| 1306 |
function aiosp_google_analytics() {
|
| 1307 |
global $aioseop_options;
|
|
|
|
| 1308 |
?>
|
| 1309 |
<script type="text/javascript">
|
| 1310 |
|
|
@@ -1372,6 +1384,8 @@ function aiosp_google_analytics() {
|
|
| 1372 |
</script>
|
| 1373 |
<?php
|
| 1374 |
}
|
|
|
|
|
|
|
| 1375 |
}
|
| 1376 |
|
| 1377 |
// Thank you, Yoast de Valk, for much of this code.
|
|
@@ -1530,13 +1544,8 @@ function aiosp_google_analytics() {
|
|
| 1530 |
$this->title_start = $start;
|
| 1531 |
$this->title_end = $end;
|
| 1532 |
$this->orig_title = $title;
|
| 1533 |
-
|
| 1534 |
-
if ( $start && $end )
|
| 1535 |
-
$header = $this->substr( $content, 0, $start + $len_start ) . $title . $this->substr( $content, $end );
|
| 1536 |
-
else
|
| 1537 |
-
$header = $content;
|
| 1538 |
|
| 1539 |
-
return $
|
| 1540 |
}
|
| 1541 |
|
| 1542 |
function internationalize( $in ) {
|
|
@@ -1717,7 +1726,6 @@ function aiosp_google_analytics() {
|
|
| 1717 |
} else if ( is_page() || $this->is_static_posts_page() || ( is_home() && !$this->is_static_posts_page() ) ) {
|
| 1718 |
if ( $post === null ) return false;
|
| 1719 |
// we're not in the loop :(
|
| 1720 |
-
$authordata = get_userdata( $post->post_author );
|
| 1721 |
if ( ( $this->is_static_front_page() ) && ( $home_title = $this->internationalize( $aioseop_options['aiosp_home_title'] ) ) ) {
|
| 1722 |
//home title filter
|
| 1723 |
return apply_filters( 'aioseop_home_page_title', $home_title );
|
|
@@ -1749,7 +1757,6 @@ function aiosp_google_analytics() {
|
|
| 1749 |
} else if ( is_single() ) {
|
| 1750 |
// we're not in the loop :(
|
| 1751 |
if ( $post === null ) return false;
|
| 1752 |
-
$authordata = get_userdata( $post->post_author );
|
| 1753 |
$categories = get_the_category();
|
| 1754 |
$category = '';
|
| 1755 |
if ( count( $categories ) > 0 ) {
|
| 760 |
|
| 761 |
function get_current_options( $opts = Array(), $location = null, $defaults = null, $post = null ) {
|
| 762 |
if ( ( $location === 'aiosp' ) && ( $this->locations[$location]['type'] == 'metabox' ) ) {
|
| 763 |
+
if ( $post == null ) {
|
| 764 |
+
global $post;
|
| 765 |
+
}
|
| 766 |
$post_id = $post;
|
| 767 |
if ( is_object( $post_id ) )
|
| 768 |
$post_id = $post_id->ID;
|
| 1252 |
$page = $this->get_page_number();
|
| 1253 |
if ( $page > 1 )
|
| 1254 |
$prev = get_previous_posts_page_link();
|
| 1255 |
+
if ( $page < $max_page ) {
|
| 1256 |
+
// $next = get_next_posts_page_link( $max_page );
|
| 1257 |
+
$paged = $GLOBALS['paged'];
|
| 1258 |
+
if ( !is_single() ) {
|
| 1259 |
+
if ( !$paged )
|
| 1260 |
+
$paged = 1;
|
| 1261 |
+
$nextpage = intval($paged) + 1;
|
| 1262 |
+
if ( !$max_page || $max_page >= $nextpage )
|
| 1263 |
+
$next = get_pagenum_link($nextpage);
|
| 1264 |
+
}
|
| 1265 |
+
}
|
| 1266 |
} else if ( is_page() || is_single() ) {
|
| 1267 |
$numpages = 1;
|
| 1268 |
$multipage = 0;
|
| 1316 |
|
| 1317 |
function aiosp_google_analytics() {
|
| 1318 |
global $aioseop_options;
|
| 1319 |
+
ob_start();
|
| 1320 |
?>
|
| 1321 |
<script type="text/javascript">
|
| 1322 |
|
| 1384 |
</script>
|
| 1385 |
<?php
|
| 1386 |
}
|
| 1387 |
+
$analytics = ob_get_clean();
|
| 1388 |
+
echo apply_filters( 'aiosp_google_analytics', $analytics );
|
| 1389 |
}
|
| 1390 |
|
| 1391 |
// Thank you, Yoast de Valk, for much of this code.
|
| 1544 |
$this->title_start = $start;
|
| 1545 |
$this->title_end = $end;
|
| 1546 |
$this->orig_title = $title;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1547 |
|
| 1548 |
+
return preg_replace( '/<title>(.*?)<\/title>/is', '<title>' . preg_replace('/(\$|\\\\)(?=\d)/', '\\\\\1', strip_tags( $title ) ) . '</title>', $content, 1 );
|
| 1549 |
}
|
| 1550 |
|
| 1551 |
function internationalize( $in ) {
|
| 1726 |
} else if ( is_page() || $this->is_static_posts_page() || ( is_home() && !$this->is_static_posts_page() ) ) {
|
| 1727 |
if ( $post === null ) return false;
|
| 1728 |
// we're not in the loop :(
|
|
|
|
| 1729 |
if ( ( $this->is_static_front_page() ) && ( $home_title = $this->internationalize( $aioseop_options['aiosp_home_title'] ) ) ) {
|
| 1730 |
//home title filter
|
| 1731 |
return apply_filters( 'aioseop_home_page_title', $home_title );
|
| 1757 |
} else if ( is_single() ) {
|
| 1758 |
// we're not in the loop :(
|
| 1759 |
if ( $post === null ) return false;
|
|
|
|
| 1760 |
$categories = get_the_category();
|
| 1761 |
$category = '';
|
| 1762 |
if ( count( $categories ) > 0 ) {
|
aioseop_module_class.php
CHANGED
|
@@ -914,9 +914,13 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Module' ) ) {
|
|
| 914 |
foreach ( $option as $v => $subopt ) {
|
| 915 |
$sel = '';
|
| 916 |
$is_arr = is_array( $value );
|
| 917 |
-
if ( is_string( $v ) || is_string( $value ) )
|
| 918 |
-
|
| 919 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 920 |
$cmp = ( $value == $v );
|
| 921 |
if ( ( !$is_arr && $cmp ) || ( $is_arr && in_array( $v, $value ) ) )
|
| 922 |
$sel = $setsel;
|
| 914 |
foreach ( $option as $v => $subopt ) {
|
| 915 |
$sel = '';
|
| 916 |
$is_arr = is_array( $value );
|
| 917 |
+
if ( is_string( $v ) || is_string( $value ) ) {
|
| 918 |
+
if ( is_string( $value ) )
|
| 919 |
+
$cmp = !strcmp( $v, $value );
|
| 920 |
+
else
|
| 921 |
+
$cmp = !strcmp( $v, "" );
|
| 922 |
+
// $cmp = !strcmp( (string)$v, (string)$value );
|
| 923 |
+
} else
|
| 924 |
$cmp = ( $value == $v );
|
| 925 |
if ( ( !$is_arr && $cmp ) || ( $is_arr && in_array( $v, $value ) ) )
|
| 926 |
$sel = $setsel;
|
all_in_one_seo_pack-ru_RU.mo
CHANGED
|
Binary file
|
all_in_one_seo_pack.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: All In One SEO Pack
|
| 4 |
Plugin URI: http://semperfiwebdesign.com
|
| 5 |
Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/">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://semperplugins.com/support/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
|
| 6 |
-
Version: 2.0.3
|
| 7 |
Author: Michael Torbert
|
| 8 |
Author URI: http://michaeltorbert.com
|
| 9 |
*/
|
|
@@ -30,11 +30,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @package All-in-One-SEO-Pack
|
| 33 |
-
* @version 2.0.3
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
-
define( 'AIOSEOP_VERSION', '2.0.3' );
|
| 38 |
|
| 39 |
if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
|
| 40 |
define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
| 3 |
Plugin Name: All In One SEO Pack
|
| 4 |
Plugin URI: http://semperfiwebdesign.com
|
| 5 |
Description: Out-of-the-box SEO for your WordPress blog. <a href="admin.php?page=all-in-one-seo-pack/aioseop_class.php">Options configuration panel</a> | <a href="http://semperplugins.com/plugins/">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://semperplugins.com/support/" >Support</a> | <a href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank" title="Amazon Wish List">Amazon Wishlist</a>
|
| 6 |
+
Version: 2.0.3.1
|
| 7 |
Author: Michael Torbert
|
| 8 |
Author URI: http://michaeltorbert.com
|
| 9 |
*/
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @package All-in-One-SEO-Pack
|
| 33 |
+
* @version 2.0.3.1
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
+
define( 'AIOSEOP_VERSION', '2.0.3.1' );
|
| 38 |
|
| 39 |
if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
|
| 40 |
define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
images/question.png
DELETED
|
Binary file
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: hallsofmontezuma
|
|
| 3 |
Donate link: 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
|
| 4 |
Tags: seo, search engine optimization, google
|
| 5 |
Requires at least: 3.3
|
| 6 |
-
Tested up to: 3.6
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines.
|
|
@@ -71,3 +71,8 @@ If you have to upgrade manually simply repeat the installation steps and re-enab
|
|
| 71 |
|
| 72 |
Please read these **[FAQs](http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/)** before requesting
|
| 73 |
**[My Plugin Support Forum](http://semperfiwebdesign.com/forum/)**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
Donate link: 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
|
| 4 |
Tags: seo, search engine optimization, google
|
| 5 |
Requires at least: 3.3
|
| 6 |
+
Tested up to: 3.6.1
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines.
|
| 71 |
|
| 72 |
Please read these **[FAQs](http://semperfiwebdesign.com/documentation/all-in-one-seo-pack/all-in-one-seo-faq/)** before requesting
|
| 73 |
**[My Plugin Support Forum](http://semperfiwebdesign.com/forum/)**
|
| 74 |
+
|
| 75 |
+
== Upgrade Notice ==
|
| 76 |
+
|
| 77 |
+
= 2.0.3.1 =
|
| 78 |
+
This version fixes a security related bug. Please Upgrade immediately.
|
