Changeset 14985 for trunk/wp-admin/plugins.php
- Timestamp:
- 05/27/2010 11:04:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r14956 r14985 52 52 $result = activate_plugin($plugin, 'plugins.php?error=true&plugin=' . $plugin, $network_wide); 53 53 if ( is_wp_error( $result ) ) { 54 if ( 'unexpected_output' == $result->get_error_code()) {54 if ( 'unexpected_output' == $result->get_error_code() ) { 55 55 $redirect = 'plugins.php?error=true&charsout=' . strlen($result->get_error_data()) . '&plugin=' . $plugin; 56 56 wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); … … 66 66 update_option('recently_activated', $recent); 67 67 } 68 69 wp_redirect("plugins.php?activate=true&plugin_status=$status&paged=$page"); // overrides the ?error=true one above 68 if ( isset($_GET['from']) && 'import' == $_GET['from'] ) { 69 wp_redirect("import.php?import=" . str_replace('-importer', '', dirname($plugin)) ); // overrides the ?error=true one above and redirects to the Imports page, striping the -importer suffix 70 } else { 71 wp_redirect("plugins.php?activate=true&plugin_status=$status&paged=$page"); // overrides the ?error=true one above 72 } 70 73 exit; 71 74 break; … … 438 441 $total_dropins_plugins = count($dropins_plugins); 439 442 440 // Searching.443 // Searching. 441 444 if ( !empty($_GET['s']) ) { 442 445 function _search_plugins_filter_callback($plugin) {
Note: See TracChangeset
for help on using the changeset viewer.