James
What does that do?
I was having a similar problem to the orignal poster and tried your fix.
However now when I click to go to the plugin page I get this.
ID, ‘plugins_last_view’, $status); $page = isset($_REQUEST[‘paged’]) ? $_REQUEST[‘paged’] : 1; //Clean up request URI from temporary args for screen options/paging uri’s to work as expected. $_SERVER[‘REQUEST_URI’] = remove_query_arg(array(‘error’, ‘deleted’, ‘activate’, ‘activate-multi’, ‘deactivate’, ‘deactivate-multi’, ‘_error_nonce’), $_SERVER[‘REQUEST_URI’]); if ( !empty($action) ) { $network_wide = false; if ( ( isset( $_GET[‘networkwide’] ) || ‘network-activate-selected’ == $action ) && is_multisite() && current_user_can( ‘manage_network_plugins’ ) ) $network_wide = true; switch ( $action ) { case ‘activate’: if ( ! current_user_can(‘activate_plugins’) ) wp_die(__(‘You do not have sufficient permissions to activate plugins for this site.’)); check_admin_referer(‘activate-plugin_’ . $plugin); $result = activate_plugin($plugin, ‘plugins.php?error=true&plugin=’ . $plugin, $network_wide); if ( is_wp_error( $result ) ) { if ( ‘unexpected_output’ == $result->get_error_code() ) { $redirect = ‘plugins.php?error=true&charsout=’ . strlen($result->get_error_data()) . ‘&plugin=’ . $plugin; wp_redirect(add_query_arg(‘_error_nonce’, wp_create_nonce(‘plugin-activation-error_’ . $plugin), $redirect)); exit; } else { wp_die($result); } } $recent = (array)get_option(‘recently_activated’); if ( isset($recent[ $plugin ]) ) { unset($recent[ $plugin ]); update_option(‘recently_activated’, $recent); } if ( isset($_GET[‘from’]) && ‘import’ == $_GET[‘from’] ) { 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 } else { wp_redirect(“plugins.php?activate=true&plugin_status=$status&paged=$page”); // overrides the ?error=true one above } exit; break; case ‘activate-selected’: case ‘network-activate-selected’: if ( ! current_user_can(‘activate_plugins’) ) wp_die(__(‘You do not have sufficient permissions to activate plugins for this site.’)); check_admin_referer(‘bulk-manage-plugins’); $plugins = isset( $_POST[‘checked’] ) ? (array) $_POST[‘checked’] : array(); $plugins = array_filter($plugins, create_function(‘$plugin’, ‘return !is_plugin_active($plugin);’) ); // Only activate plugins which are not already active. if ( empty($plugins) ) { wp_redirect(“plugins.php?plugin_status=$status&paged=$page”); exit; } activate_plugins($plugins, ‘plugins.php?error=true’, $network_wide); $recent = (array)get_option(‘recently_activated’); foreach ( $plugins as $plugin => $time) if ( isset($recent[ $plugin ]) ) unset($recent[ $plugin ]); update_option(‘recently_activated’, $recent); wp_redirect(“plugins.php?activate-multi=true&plugin_status=$status&paged=$page”); exit; break; case ‘update-selected’ : check_admin_referer( ‘bulk-manage-plugins’ ); if ( isset( $_GET[‘plugins’] ) ) $plugins = explode( ‘,’, $_GET[‘plugins’] ); elseif ( isset( $_POST[‘checked’] ) ) $plugins = (array) $_POST[‘checked’]; else $plugins = array(); $title = __( ‘Upgrade Plugins’ ); $parent_file = ‘plugins.php’; require_once( ‘./admin-header.php’ ); echo ‘
‘; screen_icon(); echo ‘
‘ . esc_html( $title ) . ‘
‘; $url = ‘update.php?action=update-selected&plugins=’ . urlencode( join(‘,’, $plugins) ); $url = wp_nonce_url($url, ‘bulk-update-plugins’); echo “
How do I undo whatever your suggested fix did?