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/plugin-editor.php

    r15853 r16008  
    6868            exit;
    6969        }
    70         wp_redirect("plugin-editor.php?file=$file&a=te&scrollto=$scrollto");
    71     } else {
    72         wp_redirect("plugin-editor.php?file=$file&scrollto=$scrollto");
     70        wp_redirect( adin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
     71    } else {
     72        wp_redirect( admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") );
    7373    }
    7474    exit;
     
    8888            activate_plugin($file, "plugin-editor.php?file=$file&phperror=1", ! empty( $_GET['networkwide'] ) ); // we'll override this later if the plugin can be included without fatal error
    8989
    90         wp_redirect("plugin-editor.php?file=$file&a=te&scrollto=$scrollto");
     90        wp_redirect( admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
    9191        exit;
    9292    }
Note: See TracChangeset for help on using the changeset viewer.