Make WordPress Core

Changeset 16015


Ignore:
Timestamp:
10/27/2010 04:52:35 PM (14 years ago)
Author:
ryan
Message:

Use self_admin_url(). Props PeteMall. see #14062

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r16008 r16015  
    6868            exit;
    6969        }
    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") );
     70        wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
     71    } else {
     72        wp_redirect( self_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( admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
     90        wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
    9191        exit;
    9292    }
Note: See TracChangeset for help on using the changeset viewer.