All in One SEO Pack - Version 2.3.2

Version Description

Download this release

Release Info

Developer dougal
Plugin Icon 128x128 All in One SEO Pack
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

Files changed (3) hide show
  1. aioseop_class.php +25 -1
  2. all_in_one_seo_pack.php +1 -1
  3. readme.txt +1 -1
aioseop_class.php CHANGED
@@ -819,6 +819,8 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
819
  add_action( "aioseop_global_settings_footer", Array( $this, 'display_settings_footer' ) );
820
  add_action( "output_option", Array( $this, 'custom_output_option' ), 10, 2 );
821
  add_action('all_admin_notices', array( $this, 'visibility_warning'));
 
 
822
  }
823
  if(AIOSEOPPRO){
824
  add_action( 'split_shared_term', Array( $this, 'split_shared_term' ), 10, 4 );
@@ -1694,7 +1696,7 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
1694
  global $aioseop_options, $aioseop_update_checker;
1695
 
1696
  $role = get_role( 'administrator' );
1697
- $role->add_cap( 'aiosp_manage_seo' );
1698
 
1699
  aioseop_update_settings_check();
1700
  add_filter( 'user_contactmethods', 'aioseop_add_contactmethods' );
@@ -1904,6 +1906,28 @@ class All_in_One_SEO_Pack extends All_in_One_SEO_Pack_Module {
1904
  }
1905
  }
1906
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1907
  function get_robots_meta() {
1908
  global $aioseop_options;
1909
  $opts = $this->meta_opts;
819
  add_action( "aioseop_global_settings_footer", Array( $this, 'display_settings_footer' ) );
820
  add_action( "output_option", Array( $this, 'custom_output_option' ), 10, 2 );
821
  add_action('all_admin_notices', array( $this, 'visibility_warning'));
822
+ add_action('all_admin_notices', array( $this, 'woo_upgrade_notice'));
823
+
824
  }
825
  if(AIOSEOPPRO){
826
  add_action( 'split_shared_term', Array( $this, 'split_shared_term' ), 10, 4 );
1696
  global $aioseop_options, $aioseop_update_checker;
1697
 
1698
  $role = get_role( 'administrator' );
1699
+ if ( is_object( $role ) ) $role->add_cap( 'aiosp_manage_seo' );
1700
 
1701
  aioseop_update_settings_check();
1702
  add_filter( 'user_contactmethods', 'aioseop_add_contactmethods' );
1906
  }
1907
  }
1908
 
1909
+ function woo_upgrade_notice() {
1910
+
1911
+ $aioseop_woo_upgrade_notice_dismissed = get_user_meta( get_current_user_id(), 'aioseop_woo_upgrade_notice_dismissed', true );
1912
+
1913
+ if ( '0' == get_option('blog_public') && empty( $aioseop_woo_upgrade_notice_dismissed ) ) {
1914
+
1915
+ printf( '
1916
+ <div id="message" class="notice-info notice is-dismissible aioseop-notice">
1917
+ <p>
1918
+ <strong>%1$s</strong>
1919
+ %2$s
1920
+
1921
+ </p>
1922
+ </div>',
1923
+ __( 'Warning: We\'ve detected you\'re running WooCommerce.', 'all-in-one-seo-pack' ),
1924
+ sprintf( __( '%s Upgrade%s to All in One SEO Pack Pro for increased SEO compatibility with your products.', 'all-in-one-seo-pack' ), sprintf( '<a target="_blank" href="%s">', esc_url( 'http://semperplugins.com/plugins/all-in-one-seo-pack-pro-version/' ) ), '</a>' ));
1925
+
1926
+ }elseif( '1' == get_option('blog_public') && !empty( $aioseop_woo_upgrade_notice_dismissed ) ){
1927
+ delete_user_meta( get_current_user_id(), 'aioseop_woo_upgrade_notice_dismissed' );
1928
+ }
1929
+ }
1930
+
1931
  function get_robots_meta() {
1932
  global $aioseop_options;
1933
  $opts = $this->meta_opts;
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. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. Almost 30 million downloads since 2007.
6
- Version: 2.3.1
7
  Author: Michael Torbert
8
  Author URI: http://michaeltorbert.com
9
  Text Domain: all-in-one-seo-pack
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. Features like XML Sitemaps, SEO for custom post types, SEO for blogs or business sites, SEO for ecommerce sites, and much more. Almost 30 million downloads since 2007.
6
+ Version: 2.3.2
7
  Author: Michael Torbert
8
  Author URI: http://michaeltorbert.com
9
  Text Domain: all-in-one-seo-pack
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtor
4
  Tags: seo, SEO, all in one seo, widget, Post, plugin, admin, posts, shortcode, sidebar, google, twitter, page, images, comments, image, social, search engine optimization, sitemap, WordPress SEO, meta, meta description, xml sitemap, xml sitemaps, google sitemap, sitemaps, robots meta, rss, rss footer, yahoo, bing, news sitemaps, XML News Sitemaps, multisite, canonical, nofollow, noindex, keywords, meta keywords, description, webmaster tools, google webmaster tools, google analytics, seo pack
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
- Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: seo, SEO, all in one seo, widget, Post, plugin, admin, posts, shortcode, sidebar, google, twitter, page, images, comments, image, social, search engine optimization, sitemap, WordPress SEO, meta, meta description, xml sitemap, xml sitemaps, google sitemap, sitemaps, robots meta, rss, rss footer, yahoo, bing, news sitemaps, XML News Sitemaps, multisite, canonical, nofollow, noindex, keywords, meta keywords, description, webmaster tools, google webmaster tools, google analytics, seo pack
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
+ Stable tag: 2.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10