Changeset 14348 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 05/02/2010 10:57:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugin-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r14299 r14348 56 56 fclose($f); 57 57 58 $network_wide = is_plugin_active_for_network( $file ); 59 58 60 // Deactivate so we can test it. 59 61 if ( is_plugin_active($file) || isset($_POST['phperror']) ) { … … 63 65 update_option('recently_activated', array($file => time()) + (array)get_option('recently_activated')); 64 66 65 wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto "));67 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)); 66 68 exit; 67 69 } … … 84 86 85 87 if ( ! is_plugin_active($file) ) 86 activate_plugin($file, "plugin-editor.php?file=$file&phperror=1" ); // we'll override this later if the plugin can be included without fatal error88 activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error 87 89 88 90 wp_redirect("plugin-editor.php?file=$file&a=te&scrollto=$scrollto");
Note: See TracChangeset
for help on using the changeset viewer.