Skip to content

Commit

Permalink
check for woo class
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltorbert committed Mar 4, 2016
1 parent c7e2ea7 commit 4ad2957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aioseop_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ function woo_upgrade_notice() {

$aioseop_woo_upgrade_notice_dismissed = get_user_meta( get_current_user_id(), 'aioseop_woo_upgrade_notice_dismissed', true );

if ( function_exists( 'woocommerce_get_page_id') && empty( $aioseop_woo_upgrade_notice_dismissed ) ) {
if ( class_exists( 'WooCommerce' ) && empty( $aioseop_woo_upgrade_notice_dismissed ) ) {

printf( '
<div id="message" class="notice-info notice is-dismissible aioseop-notice woo-upgrade-notice">
Expand All @@ -1925,7 +1925,7 @@ function woo_upgrade_notice() {
__( 'We\'ve detected you\'re running WooCommerce.', 'all-in-one-seo-pack' ),
sprintf( __( '%s Upgrade%s to All in One SEO Pack Pro for increased SEO compatibility for 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>' ));

}elseif( !function_exists( 'woocommerce_get_page_id') && !empty( $aioseop_woo_upgrade_notice_dismissed ) ){
}elseif( !class_exists( 'WooCommerce' ) && !empty( $aioseop_woo_upgrade_notice_dismissed ) ){
delete_user_meta( get_current_user_id(), 'aioseop_woo_upgrade_notice_dismissed' );
}
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtor
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
Requires at least: 3.3
Tested up to: 4.4
Stable tag: 2.3.1
Stable tag: 2.3.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit 4ad2957

Please sign in to comment.