Ticket #5658: plugins.php.diff
File plugins.php.diff, 658 bytes (added by , 17 years ago) |
---|
-
plugins.php
4 4 if ( isset($_GET['action']) ) { 5 5 if ( 'activate' == $_GET['action'] ) { 6 6 check_admin_referer('activate-plugin_' . $_GET['plugin']); 7 $result = activate_plugin($_GET['plugin'], 'plugins.php?error=true&plugin=' . $ plugin);7 $result = activate_plugin($_GET['plugin'], 'plugins.php?error=true&plugin=' . $_GET['plugin']); 8 8 if ( is_wp_error( $result ) ) 9 9 wp_die( $result->get_error_message() ); 10 10 wp_redirect('plugins.php?activate=true'); // overrides the ?error=true one above