|
@@ 271-274 (lines=4) @@
|
| 268 |
|
continue; |
| 269 |
|
} |
| 270 |
|
|
| 271 |
|
if ( ! Jetpack::is_plugin_active( $plugin ) ) { |
| 272 |
|
$error = $this->log[$plugin]['error'] = __( 'The Plugin is already deactivated.', 'jetpack' ); |
| 273 |
|
continue; |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
deactivate_plugins( $plugin, false, $this->network_wide ); |
| 277 |
|
|
|
@@ 283-286 (lines=4) @@
|
| 280 |
|
$success &= ! is_plugin_active_for_network( $plugin ); |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
if ( ! $success ) { |
| 284 |
|
$error = $this->log[$plugin]['error'] = __( 'There was an error deactivating your plugin', 'jetpack' ); |
| 285 |
|
continue; |
| 286 |
|
} |
| 287 |
|
$this->log[$plugin][] = __( 'Plugin deactivated.', 'jetpack' ); |
| 288 |
|
} |
| 289 |
|
if ( ! $this->bulk && isset( $error ) ) { |