Make WordPress Core

Ticket #14062: 14062.diff

File 14062.diff, 1.2 KB (added by PeteMall, 14 years ago)

Use self_admin_url to ensure network admin compatibility.

  • wp-admin/plugin-editor.php

     
    6767                        wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide));
    6868                        exit;
    6969                }
    70                 wp_redirect( adin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
     70                wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") );
    7171        } else {
    72                 wp_redirect( admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") );
     72                wp_redirect( self_admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") );
    7373        }
    7474        exit;
    7575
     
    8787                if ( ! is_plugin_active($file) )
    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        }
    9393