Version Description
Download this release
Release Info
| Developer | pbaylies |
| Plugin | |
| Version | 2.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1 to 2.1.1
- aioseop_class.php +35 -13
- aioseop_module_class.php +14 -6
- aioseop_sitemap.php +1 -1
- all_in_one_seo_pack.php +3 -3
- readme.txt +1 -1
aioseop_class.php
CHANGED
|
@@ -168,6 +168,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 168 |
"ga_use_universal_analytics" => __( "Use the new Universal Analytics tracking code for Google Analytics; do this for new analytics accounts.", 'all_in_one_seo_pack' ),
|
| 169 |
"ga_domain" => __( "Enter your domain name if you have enabled tracking of Subdomains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 170 |
"ga_multi_domain" => __( "Check this if you have enabled tracking of Multiple top-level domains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
|
|
|
| 171 |
"ga_exclude_users" => __( "Exclude logged-in users from Google Analytics tracking by role.", 'all_in_one_seo_pack' ),
|
| 172 |
"ga_track_outbound_links"=> __( "Check this if you want to track outbound links with Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 173 |
"cpostnoindex" => __( "Set the default NOINDEX setting for each Post Type.<br /><a href='http://semperplugins.com/documentation/noindex-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
|
@@ -368,6 +369,11 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 368 |
'name' => __( 'Track Multiple Domains:', 'all_in_one_seo_pack' ),
|
| 369 |
'default' => 0,
|
| 370 |
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
"ga_exclude_users"=> Array(
|
| 372 |
'name' => __( 'Exclude Users From Tracking:', 'all_in_one_seo_pack' ),
|
| 373 |
'type' => 'multicheckbox',
|
|
@@ -519,7 +525,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 519 |
'google' => Array(
|
| 520 |
'name' => __( 'Google Settings', 'all_in_one_seo_pack' ),
|
| 521 |
'help_link' => 'http://semperplugins.com/documentation/google-settings/',
|
| 522 |
-
'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_exclude_users", "ga_track_outbound_links" )
|
| 523 |
),
|
| 524 |
'noindex' => Array(
|
| 525 |
'name' => __( 'Noindex Settings', 'all_in_one_seo_pack' ),
|
|
@@ -581,6 +587,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 581 |
if ( !$url ) $url = get_permalink();
|
| 582 |
|
| 583 |
$description = $this->get_aioseop_description( $post );
|
|
|
|
| 584 |
|
| 585 |
if ( $this->strlen( $title ) > 70 ) $title = $this->trim_excerpt_without_filters( $title, 70 ) . '...';
|
| 586 |
if ( $this->strlen( $description ) > 156 ) $description = $this->trim_excerpt_without_filters( $description, 156 ) . '...';
|
|
@@ -602,7 +609,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 602 |
?>
|
| 603 |
<style>
|
| 604 |
#toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image {
|
| 605 |
-
background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat
|
| 606 |
}
|
| 607 |
#toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image:before {
|
| 608 |
content: '' !important;
|
|
@@ -611,7 +618,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 611 |
display: none;
|
| 612 |
}
|
| 613 |
#toplevel_page_all-in-one-seo-pack-aioseop_class:hover .wp-menu-image, #toplevel_page_all-in-one-seo-pack-aioseop_class.wp-has-current-submenu .wp-menu-image {
|
| 614 |
-
background-position:
|
| 615 |
}
|
| 616 |
#icon-aioseop.icon32 {
|
| 617 |
background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield32.png) no-repeat left top !important;
|
|
@@ -759,16 +766,16 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 759 |
}
|
| 760 |
|
| 761 |
function add_admin_pointers() {
|
| 762 |
-
$this->pointers['
|
| 763 |
'pointer_text' => '<h3>' . sprintf( __( 'Welcome to Version %s!', 'all_in_one_seo_pack' ), AIOSEOP_VERSION )
|
| 764 |
. '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! Please review your settings, as we\'re always adding new features for you!', 'all_in_one_seo_pack' ) . '</p>',
|
| 765 |
'pointer_edge' => 'top',
|
| 766 |
'pointer_align' => 'left',
|
| 767 |
'pointer_scope' => 'global'
|
| 768 |
);
|
| 769 |
-
$this->pointers['
|
| 770 |
'pointer_text' => '<h3>' . sprintf( __( 'Review Your Settings', 'all_in_one_seo_pack' ), AIOSEOP_VERSION )
|
| 771 |
-
. '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever!
|
| 772 |
'pointer_edge' => 'bottom',
|
| 773 |
'pointer_align' => 'left',
|
| 774 |
'pointer_scope' => 'local'
|
|
@@ -834,6 +841,9 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 834 |
foreach ( Array( 'seopostcol', 'seocustptcol', 'debug_info', 'max_words_excerpt' ) as $opt )
|
| 835 |
unset( $settings["{$prefix}$opt"] );
|
| 836 |
|
|
|
|
|
|
|
|
|
|
| 837 |
} elseif ( $location == 'aiosp' ) {
|
| 838 |
global $post, $aioseop_sitemap;
|
| 839 |
$prefix = $this->get_prefix( $location ) . $location . '_';
|
|
@@ -1169,6 +1179,8 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 1169 |
else if ( is_single() || is_page() || is_home() || $this->is_static_posts_page() )
|
| 1170 |
$description = $this->get_aioseop_description( $post );
|
| 1171 |
|
|
|
|
|
|
|
| 1172 |
/*
|
| 1173 |
if ( $this->is_static_front_page() )
|
| 1174 |
$description = trim( stripslashes( $this->internationalize( $aioseop_options['aiosp_home_description'] ) ) );
|
|
@@ -1397,8 +1409,9 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
|
|
| 1397 |
}
|
| 1398 |
|
| 1399 |
function override_options( $options, $location, $settings ) {
|
| 1400 |
-
|
| 1401 |
-
|
|
|
|
| 1402 |
return $options;
|
| 1403 |
}
|
| 1404 |
|
|
@@ -1701,8 +1714,15 @@ function aiosp_google_analytics() {
|
|
| 1701 |
?> _gaq.push(['_trackPageview']);
|
| 1702 |
(function() {
|
| 1703 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
| 1704 |
-
|
| 1705 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1706 |
})();
|
| 1707 |
</script>
|
| 1708 |
<?php
|
|
@@ -1773,6 +1793,7 @@ function aiosp_google_analytics() {
|
|
| 1773 |
if ( $query->is_404 || $query->is_search )
|
| 1774 |
return false;
|
| 1775 |
|
|
|
|
| 1776 |
$haspost = count( $query->posts ) > 0;
|
| 1777 |
|
| 1778 |
if ( get_query_var( 'm' ) ) {
|
|
@@ -1820,12 +1841,14 @@ function aiosp_google_analytics() {
|
|
| 1820 |
} elseif ( $query->is_tax && $haspost ) {
|
| 1821 |
$taxonomy = get_query_var( 'taxonomy' );
|
| 1822 |
$term = get_query_var( 'term' );
|
| 1823 |
-
|
|
|
|
| 1824 |
} elseif ( $query->is_archive && function_exists( 'get_post_type_archive_link' ) && ( $post_type = get_query_var( 'post_type' ) ) ) {
|
| 1825 |
$link = get_post_type_archive_link( $post_type );
|
| 1826 |
} else {
|
| 1827 |
return false;
|
| 1828 |
}
|
|
|
|
| 1829 |
return $this->yoast_get_paged( $link );
|
| 1830 |
}
|
| 1831 |
|
|
@@ -1904,7 +1927,6 @@ function aiosp_google_analytics() {
|
|
| 1904 |
$description = $this->get_post_description( $blog_page );
|
| 1905 |
if ( empty( $description ) && is_object( $post ) && !is_archive() && empty( $blog_page ) )
|
| 1906 |
$description = $this->get_post_description( $post );
|
| 1907 |
-
$description = apply_filters( 'aioseop_description', $description );
|
| 1908 |
return $description;
|
| 1909 |
}
|
| 1910 |
|
|
@@ -2585,7 +2607,7 @@ function aiosp_google_analytics() {
|
|
| 2585 |
|
| 2586 |
add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core');
|
| 2587 |
add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
|
| 2588 |
-
add_meta_box('aioseop-hosting', __( "Recommended WordPress Hosting", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
|
| 2589 |
|
| 2590 |
add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 );
|
| 2591 |
do_action( 'aioseop_modules_add_menus', $file );
|
| 168 |
"ga_use_universal_analytics" => __( "Use the new Universal Analytics tracking code for Google Analytics; do this for new analytics accounts.", 'all_in_one_seo_pack' ),
|
| 169 |
"ga_domain" => __( "Enter your domain name if you have enabled tracking of Subdomains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 170 |
"ga_multi_domain" => __( "Check this if you have enabled tracking of Multiple top-level domains in Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 171 |
+
"ga_display_advertising"=> __( "Support for Doubleclick Display Advertising tracking with legacy ga.js tracking method (not required for Universal Analytics).", 'all_in_one_seo_pack' ),
|
| 172 |
"ga_exclude_users" => __( "Exclude logged-in users from Google Analytics tracking by role.", 'all_in_one_seo_pack' ),
|
| 173 |
"ga_track_outbound_links"=> __( "Check this if you want to track outbound links with Google Analytics.<br /><a href='http://semperplugins.com/documentation/google-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 174 |
"cpostnoindex" => __( "Set the default NOINDEX setting for each Post Type.<br /><a href='http://semperplugins.com/documentation/noindex-settings/' target='_blank'>Click here for documentation on this setting</a>", 'all_in_one_seo_pack' ),
|
| 369 |
'name' => __( 'Track Multiple Domains:', 'all_in_one_seo_pack' ),
|
| 370 |
'default' => 0,
|
| 371 |
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ) ) ),
|
| 372 |
+
"ga_display_advertising"=> Array(
|
| 373 |
+
'name' => __( '"Display Advertising" Tracking:', 'all_in_one_seo_pack' ),
|
| 374 |
+
'type' => 'checkbox',
|
| 375 |
+
'condshow' => Array( 'aiosp_google_analytics_id' => Array( 'lhs' => 'aiosp_google_analytics_id', 'op' => '!=', 'rhs' => '' ),
|
| 376 |
+
'aiosp_ga_use_universal_analytics' => Array( 'lhs' => 'aiosp_ga_use_universal_analytics', 'op' => '!=', 'rhs' => 'on' ) ) ),
|
| 377 |
"ga_exclude_users"=> Array(
|
| 378 |
'name' => __( 'Exclude Users From Tracking:', 'all_in_one_seo_pack' ),
|
| 379 |
'type' => 'multicheckbox',
|
| 525 |
'google' => Array(
|
| 526 |
'name' => __( 'Google Settings', 'all_in_one_seo_pack' ),
|
| 527 |
'help_link' => 'http://semperplugins.com/documentation/google-settings/',
|
| 528 |
+
'options' => Array( "google_publisher", "google_disable_profile", "google_connect", "google_analytics_id", "ga_use_universal_analytics", "ga_domain", "ga_multi_domain", "ga_display_advertising", "ga_exclude_users", "ga_track_outbound_links" )
|
| 529 |
),
|
| 530 |
'noindex' => Array(
|
| 531 |
'name' => __( 'Noindex Settings', 'all_in_one_seo_pack' ),
|
| 587 |
if ( !$url ) $url = get_permalink();
|
| 588 |
|
| 589 |
$description = $this->get_aioseop_description( $post );
|
| 590 |
+
$description = apply_filters( 'aioseop_description', $description );
|
| 591 |
|
| 592 |
if ( $this->strlen( $title ) > 70 ) $title = $this->trim_excerpt_without_filters( $title, 70 ) . '...';
|
| 593 |
if ( $this->strlen( $description ) > 156 ) $description = $this->trim_excerpt_without_filters( $description, 156 ) . '...';
|
| 609 |
?>
|
| 610 |
<style>
|
| 611 |
#toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image {
|
| 612 |
+
background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield-sprite-16.png) no-repeat 8px 6px !important;
|
| 613 |
}
|
| 614 |
#toplevel_page_all-in-one-seo-pack-aioseop_class .wp-menu-image:before {
|
| 615 |
content: '' !important;
|
| 618 |
display: none;
|
| 619 |
}
|
| 620 |
#toplevel_page_all-in-one-seo-pack-aioseop_class:hover .wp-menu-image, #toplevel_page_all-in-one-seo-pack-aioseop_class.wp-has-current-submenu .wp-menu-image {
|
| 621 |
+
background-position: 8px -26px !important;
|
| 622 |
}
|
| 623 |
#icon-aioseop.icon32 {
|
| 624 |
background: url(<?php echo AIOSEOP_PLUGIN_IMAGES_URL; ?>shield32.png) no-repeat left top !important;
|
| 766 |
}
|
| 767 |
|
| 768 |
function add_admin_pointers() {
|
| 769 |
+
$this->pointers['aioseop_menu_211'] = Array( 'pointer_target' => '#toplevel_page_all-in-one-seo-pack-aioseop_class',
|
| 770 |
'pointer_text' => '<h3>' . sprintf( __( 'Welcome to Version %s!', 'all_in_one_seo_pack' ), AIOSEOP_VERSION )
|
| 771 |
. '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! Please review your settings, as we\'re always adding new features for you!', 'all_in_one_seo_pack' ) . '</p>',
|
| 772 |
'pointer_edge' => 'top',
|
| 773 |
'pointer_align' => 'left',
|
| 774 |
'pointer_scope' => 'global'
|
| 775 |
);
|
| 776 |
+
$this->pointers['aioseop_welcome_211'] = Array( 'pointer_target' => '#aioseop_top_button',
|
| 777 |
'pointer_text' => '<h3>' . sprintf( __( 'Review Your Settings', 'all_in_one_seo_pack' ), AIOSEOP_VERSION )
|
| 778 |
+
. '</h3><p>' . __( 'Thank you for running the latest and greatest All in One SEO Pack ever! New since 2.1: Manage how your site appears on Facebook, Google+, and Twitter with our Social Meta module. Enable it from the Feature Manager. Remember to review your settings, we have added some new ones!', 'all_in_one_seo_pack' ) . '</p>',
|
| 779 |
'pointer_edge' => 'bottom',
|
| 780 |
'pointer_align' => 'left',
|
| 781 |
'pointer_scope' => 'local'
|
| 841 |
foreach ( Array( 'seopostcol', 'seocustptcol', 'debug_info', 'max_words_excerpt' ) as $opt )
|
| 842 |
unset( $settings["{$prefix}$opt"] );
|
| 843 |
|
| 844 |
+
if ( !class_exists( 'DOMDocument' ) ) {
|
| 845 |
+
unset( $settings["{prefix}google_connect"] );
|
| 846 |
+
}
|
| 847 |
} elseif ( $location == 'aiosp' ) {
|
| 848 |
global $post, $aioseop_sitemap;
|
| 849 |
$prefix = $this->get_prefix( $location ) . $location . '_';
|
| 1179 |
else if ( is_single() || is_page() || is_home() || $this->is_static_posts_page() )
|
| 1180 |
$description = $this->get_aioseop_description( $post );
|
| 1181 |
|
| 1182 |
+
$description = apply_filters( 'aioseop_description', $description );
|
| 1183 |
+
|
| 1184 |
/*
|
| 1185 |
if ( $this->is_static_front_page() )
|
| 1186 |
$description = trim( stripslashes( $this->internationalize( $aioseop_options['aiosp_home_description'] ) ) );
|
| 1409 |
}
|
| 1410 |
|
| 1411 |
function override_options( $options, $location, $settings ) {
|
| 1412 |
+
if ( class_exists( 'DOMDocument' ) ) {
|
| 1413 |
+
$options['aiosp_google_connect'] = $settings['aiosp_google_connect']['default'];
|
| 1414 |
+
}
|
| 1415 |
return $options;
|
| 1416 |
}
|
| 1417 |
|
| 1714 |
?> _gaq.push(['_trackPageview']);
|
| 1715 |
(function() {
|
| 1716 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
| 1717 |
+
<?php
|
| 1718 |
+
if (!empty( $aioseop_options['aiosp_ga_display_advertising'] ) ) {
|
| 1719 |
+
?> ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
| 1720 |
+
<?php
|
| 1721 |
+
} else {
|
| 1722 |
+
?> ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
| 1723 |
+
<?php
|
| 1724 |
+
}
|
| 1725 |
+
?> var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
| 1726 |
})();
|
| 1727 |
</script>
|
| 1728 |
<?php
|
| 1793 |
if ( $query->is_404 || $query->is_search )
|
| 1794 |
return false;
|
| 1795 |
|
| 1796 |
+
$link = '';
|
| 1797 |
$haspost = count( $query->posts ) > 0;
|
| 1798 |
|
| 1799 |
if ( get_query_var( 'm' ) ) {
|
| 1841 |
} elseif ( $query->is_tax && $haspost ) {
|
| 1842 |
$taxonomy = get_query_var( 'taxonomy' );
|
| 1843 |
$term = get_query_var( 'term' );
|
| 1844 |
+
if ( !empty( $term ) )
|
| 1845 |
+
$link = get_term_link( $term, $taxonomy );
|
| 1846 |
} elseif ( $query->is_archive && function_exists( 'get_post_type_archive_link' ) && ( $post_type = get_query_var( 'post_type' ) ) ) {
|
| 1847 |
$link = get_post_type_archive_link( $post_type );
|
| 1848 |
} else {
|
| 1849 |
return false;
|
| 1850 |
}
|
| 1851 |
+
if ( empty( $link ) || !is_string( $link ) ) return false;
|
| 1852 |
return $this->yoast_get_paged( $link );
|
| 1853 |
}
|
| 1854 |
|
| 1927 |
$description = $this->get_post_description( $blog_page );
|
| 1928 |
if ( empty( $description ) && is_object( $post ) && !is_archive() && empty( $blog_page ) )
|
| 1929 |
$description = $this->get_post_description( $post );
|
|
|
|
| 1930 |
return $description;
|
| 1931 |
}
|
| 1932 |
|
| 2607 |
|
| 2608 |
add_meta_box('aioseop-list', __( "Join Our Mailing List", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'normal', 'core');
|
| 2609 |
add_meta_box('aioseop-about', "About <span style='float:right;'>Version <b>" . AIOSEOP_VERSION . "</b></span>", array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
|
| 2610 |
+
// add_meta_box('aioseop-hosting', __( "Recommended WordPress Hosting", 'all_in_one_seo_pack' ), array( $this, 'display_extra_metaboxes'), 'aioseop_metaboxes', 'side', 'core');
|
| 2611 |
|
| 2612 |
add_action( 'aioseop_modules_add_menus', Array( $this, 'add_menu' ), 5 );
|
| 2613 |
do_action( 'aioseop_modules_add_menus', $file );
|
aioseop_module_class.php
CHANGED
|
@@ -230,15 +230,23 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Module' ) ) {
|
|
| 230 |
* @see http://gaarf.info/2009/08/13/xml-string-to-php-array/
|
| 231 |
*/
|
| 232 |
function html_string_to_array( $xmlstr ) {
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
}
|
| 237 |
|
| 238 |
function xml_string_to_array( $xmlstr ) {
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
}
|
| 243 |
|
| 244 |
function domnode_to_array( $node ) {
|
| 230 |
* @see http://gaarf.info/2009/08/13/xml-string-to-php-array/
|
| 231 |
*/
|
| 232 |
function html_string_to_array( $xmlstr ) {
|
| 233 |
+
if ( !class_exists( 'DOMDocument' ) ) {
|
| 234 |
+
return Array();
|
| 235 |
+
} else {
|
| 236 |
+
$doc = new DOMDocument();
|
| 237 |
+
$doc->loadHTML( $xmlstr );
|
| 238 |
+
return $this->domnode_to_array( $doc->documentElement );
|
| 239 |
+
}
|
| 240 |
}
|
| 241 |
|
| 242 |
function xml_string_to_array( $xmlstr ) {
|
| 243 |
+
if ( !class_exists( 'DOMDocument' ) ) {
|
| 244 |
+
return Array();
|
| 245 |
+
} else {
|
| 246 |
+
$doc = new DOMDocument();
|
| 247 |
+
$doc->loadXML( $xmlstr );
|
| 248 |
+
return $this->domnode_to_array( $doc->documentElement );
|
| 249 |
+
}
|
| 250 |
}
|
| 251 |
|
| 252 |
function domnode_to_array( $node ) {
|
aioseop_sitemap.php
CHANGED
|
@@ -1444,7 +1444,7 @@ if ( !class_exists( 'All_in_One_SEO_Pack_Sitemap' ) ) {
|
|
| 1444 |
'cache_results' => false,
|
| 1445 |
'no_found_rows' => true
|
| 1446 |
);
|
| 1447 |
-
if ( defined( '
|
| 1448 |
$args = wp_parse_args( $args, $defaults );
|
| 1449 |
if ( empty( $args['post_type'] ) )
|
| 1450 |
return apply_filters( $this->prefix . 'post_filter', Array(), $args );
|
| 1444 |
'cache_results' => false,
|
| 1445 |
'no_found_rows' => true
|
| 1446 |
);
|
| 1447 |
+
if ( defined( 'ICL_SITEPRESS_VERSION' ) ) $defaults['suppress_filters'] = false;
|
| 1448 |
$args = wp_parse_args( $args, $defaults );
|
| 1449 |
if ( empty( $args['post_type'] ) )
|
| 1450 |
return apply_filters( $this->prefix . 'post_filter', Array(), $args );
|
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/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">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.1
|
| 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.1
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
-
define( 'AIOSEOP_VERSION', '2.1' );
|
| 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/all-in-one-seo-pack-pro-version/?loc=plugins" target="_blank">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.1.1
|
| 7 |
Author: Michael Torbert
|
| 8 |
Author URI: http://michaeltorbert.com
|
| 9 |
*/
|
| 30 |
|
| 31 |
/**
|
| 32 |
* @package All-in-One-SEO-Pack
|
| 33 |
+
* @version 2.1.1
|
| 34 |
*/
|
| 35 |
|
| 36 |
if ( ! defined( 'AIOSEOP_VERSION' ) )
|
| 37 |
+
define( 'AIOSEOP_VERSION', '2.1.1' );
|
| 38 |
|
| 39 |
if ( ! defined( 'AIOSEOP_PLUGIN_DIR' ) ) {
|
| 40 |
define( 'AIOSEOP_PLUGIN_DIR', plugin_dir_path( __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: all in one, all in one seo, all in one seo pack, seo, search engine optimization, google
|
| 5 |
Requires at least: 3.3
|
| 6 |
-
Tested up to: 3.
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
All in One SEO Pack is a WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines such as Google.
|
| 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: all in one, all in one seo, all in one seo pack, seo, search engine optimization, google
|
| 5 |
Requires at least: 3.3
|
| 6 |
+
Tested up to: 3.8
|
| 7 |
Stable tag: trunk
|
| 8 |
|
| 9 |
All in One SEO Pack is a WordPress SEO plugin to automatically optimize your Wordpress blog for Search Engines such as Google.
|
