1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-04-26 08:31:02 +03:00

Move restore_current_blog in the correct position

This commit is contained in:
Ulrich Pogson 2014-06-01 00:06:29 +02:00
parent 7d71114f81
commit e75e6e2c57

View file

@ -134,9 +134,9 @@ class Plugin_Name {
switch_to_blog( $blog_id );
self::single_activate();
}
restore_current_blog();
restore_current_blog();
}
} else {
self::single_activate();
@ -172,9 +172,9 @@ class Plugin_Name {
switch_to_blog( $blog_id );
self::single_deactivate();
}
restore_current_blog();
restore_current_blog();
}
} else {
self::single_deactivate();