Make WordPress Core


Ignore:
Timestamp:
10/27/2010 10:43:43 AM (14 years ago)
Author:
dd32
Message:

Use Absolute URL's & API's in header redirects in more locations. See #14062

File:
1 edited

Legend:

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

    r15962 r16008  
    1717        check_admin_referer('switch-theme_' . $_GET['template']);
    1818        switch_theme($_GET['template'], $_GET['stylesheet']);
    19         wp_redirect('themes.php?activated=true');
     19        wp_redirect( admin_url('themes.php?activated=true') );
    2020        exit;
    2121    } else if ( 'delete' == $_GET['action'] ) {
     
    2424            wp_die( __( 'Cheatin’ uh?' ) );
    2525        delete_theme($_GET['template']);
    26         wp_redirect('themes.php?deleted=true');
     26        wp_redirect( admin_url('themes.php?deleted=true') );
    2727        exit;
    2828    }
Note: See TracChangeset for help on using the changeset viewer.