Make WordPress Core


Ignore:
Timestamp:
06/27/2006 05:38:56 AM (18 years ago)
Author:
ryan
Message:

Use wp_redirect().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r3804 r3928  
    1313            do_action('activate_' . trim( $_GET['plugin'] ));
    1414        }
    15         header('Location: plugins.php?activate=true');
     15        wp_redirect('plugins.php?activate=true');
    1616    } else if ('deactivate' == $_GET['action']) {
    1717        check_admin_referer('deactivate-plugin_' . $_GET['plugin']);
     
    2020        update_option('active_plugins', $current);
    2121        do_action('deactivate_' . trim( $_GET['plugin'] ));
    22         header('Location: plugins.php?deactivate=true');
     22        wp_redirect('plugins.php?deactivate=true');
    2323    }
    2424    exit;
Note: See TracChangeset for help on using the changeset viewer.