" .
__( 'The Affiliates WP e-Commerce Integration plugin requires an appropriate Affiliates plugin: Affiliates, Affiliates Pro or Affiliates Enterprise.', AFF_WPEC_PLUGIN_DOMAIN ) .
"";
}
if ( !$wpec_is_active ) {
self::$admin_messages[] =
"
" .
__( 'The
Affiliates WP e-Commerce Integration plugin requires
WP e-Commerce.', AFF_WPEC_PLUGIN_DOMAIN ) .
"
";
}
if ( !$affiliates_is_active || !$wpec_is_active ) {
$result = false;
}
// deactivate the old plugin
$affiliates_wpsc_is_active = in_array( 'affiliates-wpsc/affiliates-wpsc.php', $active_plugins );
if ( $affiliates_wpsc_is_active ) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
if ( function_exists('deactivate_plugins' ) ) {
deactivate_plugins( 'affiliates-wpsc/affiliates-wpsc.php' );
self::$admin_messages[] =
"" .
__( 'The Affiliates WP e-Commerce Integration plugin version 2 and above replaces the former integration plugin (version number below 2.x).
The former plugin has been deactivated and can now be deleted.', AFF_WPEC_PLUGIN_DOMAIN ) .
"
";
} else {
self::$admin_messages[] =
"" .
__( 'The Affiliates WP e-Commerce Integration plugin version 2 and above replaces the former integration plugin with an inferior version number.
Please deactivate and delete the former integration plugin with version number below 2.x.', AFF_WPEC_PLUGIN_DOMAIN ) .
"
";
}
}
return $result;
}
}
Affiliates_WPEC::init();