mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
Merge pull request #186 from grappler/activate-deactivate
Move restore_current_blog in the correct position
This commit is contained in:
commit
5efc89dc3b
1 changed files with 4 additions and 4 deletions
|
@ -134,9 +134,9 @@ class Plugin_Name {
|
||||||
|
|
||||||
switch_to_blog( $blog_id );
|
switch_to_blog( $blog_id );
|
||||||
self::single_activate();
|
self::single_activate();
|
||||||
}
|
|
||||||
|
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self::single_activate();
|
self::single_activate();
|
||||||
|
@ -172,9 +172,9 @@ class Plugin_Name {
|
||||||
switch_to_blog( $blog_id );
|
switch_to_blog( $blog_id );
|
||||||
self::single_deactivate();
|
self::single_deactivate();
|
||||||
|
|
||||||
}
|
restore_current_blog();
|
||||||
|
|
||||||
restore_current_blog();
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self::single_deactivate();
|
self::single_deactivate();
|
||||||
|
|
Loading…
Reference in a new issue