Ticket #37664: 37664.2.patch
File 37664.2.patch, 1.4 KB (added by , 8 years ago) |
---|
-
src/wp-admin/plugin-editor.php
36 36 exit; 37 37 } 38 38 39 if ( $file ) { 40 $plugin = $file; 41 } elseif ( empty( $plugin ) ) { 39 if ( ! isset( $plugin ) || empty( $plugin ) ) { 42 40 $plugin = array_keys($plugins); 43 41 $plugin = $plugin[0]; 44 42 } … … 77 75 update_site_option( 'recently_activated', array( $file => time() ) + (array) get_site_option( 'recently_activated' ) ); 78 76 } 79 77 80 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));78 wp_redirect(add_query_arg('_wpnonce', wp_create_nonce('edit-plugin-test_' . $file), "plugin-editor.php?file=$file&plugin=$plugin&liveupdate=1&scrollto=$scrollto&networkwide=" . $network_wide)); 81 79 exit; 82 80 } 83 wp_redirect( self_admin_url("plugin-editor.php?file=$file& a=te&scrollto=$scrollto") );81 wp_redirect( self_admin_url("plugin-editor.php?file=$file&plugin=$plugin&a=te&scrollto=$scrollto") ); 84 82 } else { 85 wp_redirect( self_admin_url("plugin-editor.php?file=$file& scrollto=$scrollto") );83 wp_redirect( self_admin_url("plugin-editor.php?file=$file&plugin=$plugin&scrollto=$scrollto") ); 86 84 } 87 85 exit; 88 86