@@ 74-78 (lines=5) @@ | ||
71 | if ( is_plugin_active($file) ) |
|
72 | deactivate_plugins($file, true); |
|
73 | ||
74 | if ( ! is_network_admin() ) { |
|
75 | update_option( 'recently_activated', array( $file => time() ) + (array) get_option( 'recently_activated' ) ); |
|
76 | } else { |
|
77 | update_site_option( 'recently_activated', array( $file => time() ) + (array) get_site_option( 'recently_activated' ) ); |
|
78 | } |
|
79 | ||
80 | wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide)); |
|
81 | exit; |
@@ 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" ) . "' />"; |