Ticket #13117: 13117.patch
File 13117.patch, 761 bytes (added by , 15 years ago) |
---|
-
plugin-editor.php
10 10 require_once('./admin.php'); 11 11 12 12 if ( !current_user_can('edit_plugins') ) 13 wp_die( '<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');13 wp_die( __('You do not have sufficient permissions to edit plugins for this blog.') ); 14 14 15 15 $title = __("Edit Plugins"); 16 16 $parent_file = 'plugins.php'; … … 25 25 $plugin = stripslashes($_REQUEST['file']); 26 26 27 27 if ( empty($plugin) ) { 28 if( empty($plugins) ) 29 wp_die( __('There are no plugins installed on this blog.') ); 30 28 31 $plugin = array_keys($plugins); 29 32 $plugin = $plugin[0]; 30 33 }