WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/27/2010 10:43:43 AM (11 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/widgets.php

    r15132 r16008  
    176176
    177177        if ( !in_array($widget_id, $sidebar, true) ) {
    178             wp_redirect('widgets.php?error=0');
     178            wp_redirect( admin_url('widgets.php?error=0') );
    179179            exit;
    180180        }
     
    209209
    210210    wp_set_sidebars_widgets($sidebars_widgets);
    211     wp_redirect('widgets.php?message=0');
     211    wp_redirect( admin_url('widgets.php?message=0') );
    212212    exit;
    213213}
Note: See TracChangeset for help on using the changeset viewer.