Skip to content

Commit

Permalink
Fixed issue where deactivate_plugins() function was called too early …
Browse files Browse the repository at this point in the history
…causing errors in some cases.
  • Loading branch information
ScottDeLuzio committed May 7, 2019
1 parent 081cd32 commit 1277e30
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/wcs-updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ function wp_crm_system_remove_merged_premium_addons(){
);
deactivate_plugins( $plugins );
}
add_action( 'plugins_loaded', 'wp_crm_system_remove_merged_premium_addons', 1 );
add_action( 'admin_init', 'wp_crm_system_remove_merged_premium_addons', 1 );
4 changes: 2 additions & 2 deletions js/dashboard-address-book.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
jQuery(document).ready(function($) {
$('#dashboard-address-book').change(function() {
$('#address_book_loading').show();

data = {
action: 'address_book_response',
address_book_nonce: address_book_vars.address_book_nonce,
Expand Down Expand Up @@ -29,7 +29,7 @@ jQuery(document).ready(function($) {
},
});
});

return false;
});
});
8 changes: 5 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: scott.deluzio
Tags: WordPress CRM, Free CRM for WordPress, CRM, Free WordPress CRM, CRM for WordPress, gdpr
Requires at least: 3.3.0
Tested up to: 5.2.0
Stable tag: 3.0.1
Stable tag: 3.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -91,6 +91,8 @@ Absolutely. There are inexpensive extensions that allow you to import as little
Your data is only accessible through the WordPress CRM dashboard. None of it will be accessible through the public facing portion of your website unless you are using our GDPR features (see above). This allows you to provide access to as few or as many people as you need to.

== Changelog ==
= 3.0.2 =
* Fixed issue where `deactivate_plugins()` function was called too early causing errors in some cases.
= 3.0.1 =
* Fixed duplicate function name error when WP-CRM System and Email Notifications were active at the same time.
= 3.0.0 =
Expand Down Expand Up @@ -352,5 +354,5 @@ Your data is only accessible through the WordPress CRM dashboard. None of it wil
* Initial Release

== Upgrade Notice ==
= 3.0.1 =
* Fixed duplicate function name error when WP-CRM System and Email Notifications were active at the same time.
= 3.0.2 =
* Fixed issue where `deactivate_plugins()` function was called too early causing errors in some cases.
4 changes: 2 additions & 2 deletions wp-crm-system.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP-CRM System
Plugin URI: https://www.wp-crm.com
Description: A complete CRM for WordPress
Version: 3.0.1
Version: 3.0.2
Author: Scott DeLuzio
Author URI: https://www.wp-crm.com
Text Domain: wp-crm-system
Expand Down Expand Up @@ -34,7 +34,7 @@ function wp_crm_plugin_init() {
define( 'WP_CRM_SYSTEM', __FILE__ );
}
if ( ! defined( 'WP_CRM_SYSTEM_VERSION' ) ) {
define( 'WP_CRM_SYSTEM_VERSION', '3.0.1' );
define( 'WP_CRM_SYSTEM_VERSION', '3.0.2' );
}
if( ! defined( 'WP_CRM_SYSTEM_URL' ) ) {
define( 'WP_CRM_SYSTEM_URL', plugins_url( '', __FILE__ ) );
Expand Down

0 comments on commit 1277e30

Please sign in to comment.