| @@ 182-186 (lines=5) @@ | ||
| 179 | ||
| 180 | deactivate_plugins( $plugin, false, is_network_admin() ); |
|
| 181 | ||
| 182 | if ( ! is_network_admin() ) { |
|
| 183 | update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ) ); |
|
| 184 | } else { |
|
| 185 | update_site_option( 'recently_activated', array( $plugin => time() ) + (array) get_site_option( 'recently_activated' ) ); |
|
| 186 | } |
|
| 187 | ||
| 188 | if ( headers_sent() ) |
|
| 189 | echo "<meta http-equiv='refresh' content='" . esc_attr( "0;url=plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s" ) . "' />"; |
|
| @@ 83-87 (lines=5) @@ | ||
| 80 | deactivate_plugins( $plugin, true ); |
|
| 81 | } |
|
| 82 | ||
| 83 | if ( ! is_network_admin() ) { |
|
| 84 | update_option( 'recently_activated', array( $file => time() ) + (array) get_option( 'recently_activated' ) ); |
|
| 85 | } else { |
|
| 86 | update_site_option( 'recently_activated', array( $file => time() ) + (array) get_site_option( 'recently_activated' ) ); |
|
| 87 | } |
|
| 88 | ||
| 89 | wp_redirect( add_query_arg( '_wpnonce', wp_create_nonce( 'edit-plugin-test_' . $file ), "plugin-editor.php?file=$file&plugin=$plugin&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide ) ); |
|
| 90 | exit; |
|