@@ -35,15 +35,14 @@ function shashinActivateForNewNetworkSite($blog_id) {
35
35
}
36
36
37
37
function shashinActivate () {
38
- $ autoLoaderPath = dirname (__FILE__ ) . '/../toppa-plugin-libraries-for-wordpress/ToppaAutoLoaderWp.php ' ;
39
- $ status = shashinActivationChecks ($ autoLoaderPath );
38
+ $ status = shashinActivationChecks ();
40
39
41
40
if (is_string ($ status )) {
42
41
shashinCancelActivation ($ status );
43
42
return null ;
44
43
}
45
44
46
- require_once ( $ autoLoaderPath ) ;
45
+ require_once dirname ( __FILE__ ) . ' /../toppa-plugin-libraries-for-wordpress/ToppaAutoLoaderWp.php ' ;
47
46
$ toppaAutoLoader = new ToppaAutoLoaderWp ('/toppa-plugin-libraries-for-wordpress ' );
48
47
$ shashinAutoLoader = new ToppaAutoLoaderWp ('/shashin ' );
49
48
$ shashin = new ShashinWp ($ shashinAutoLoader );
@@ -54,11 +53,12 @@ function shashinActivate() {
54
53
return null ;
55
54
}
56
55
57
- delete_option ('shashinCantActivateReason ' );
56
+ // delete_option('shashinCantActivateReason');
58
57
return null ;
59
58
}
60
59
61
- function shashinActivationChecks ($ autoLoaderPath ) {
60
+ function shashinActivationChecks () {
61
+ $ autoLoaderPath = dirname (__FILE__ ) . '/../toppa-plugin-libraries-for-wordpress/ToppaAutoLoaderWp.php ' ;
62
62
$ toppaLibsVersion = get_option ('toppaLibsVersion ' );
63
63
64
64
if (!file_exists ($ autoLoaderPath ) || !$ toppaLibsVersion || version_compare ($ toppaLibsVersion , '1.3.2 ' , '< ' )) {
@@ -79,7 +79,8 @@ function shashinActivationChecks($autoLoaderPath) {
79
79
80
80
function shashinCancelActivation ($ message ) {
81
81
deactivate_plugins (basename (__FILE__ ));
82
- update_option ('shashinCantActivateReason ' , $ message );
82
+ //update_option('shashinCantActivateReason', $message);
83
+ wp_die ($ message );
83
84
}
84
85
85
86
function shashinDeactivateForNetworkSites () {
0 commit comments