From 5fe33fe73213c2b28a994a89e67ff76b1413221a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Oct 2010 16:52:35 +0000 Subject: [PATCH] Use self_admin_url(). Props PeteMall. see #14062 git-svn-id: https://develop.svn.wordpress.org/trunk@16015 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/plugin-editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index a8c8efb91c..7440344c1c 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -67,9 +67,9 @@ case 'update': 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)); exit; } - wp_redirect( adin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); + wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); } else { - wp_redirect( admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") ); + wp_redirect( self_admin_url("plugin-editor.php?file=$file&scrollto=$scrollto") ); } exit; @@ -87,7 +87,7 @@ default: if ( ! is_plugin_active($file) ) 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 - wp_redirect( admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); + wp_redirect( self_admin_url("plugin-editor.php?file=$file&a=te&scrollto=$scrollto") ); exit; }