Ticket #14062: 14062.diff
File 14062.diff, 1.2 KB (added by , 14 years ago) |
---|
-
wp-admin/plugin-editor.php
67 67 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)); 68 68 exit; 69 69 } 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") ); 71 71 } 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") ); 73 73 } 74 74 exit; 75 75 … … 87 87 if ( ! is_plugin_active($file) ) 88 88 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 89 89 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") ); 91 91 exit; 92 92 } 93 93