Ticket #13117: 13117-v2.patch
File 13117-v2.patch, 1.4 KB (added by , 15 years ago) |
---|
-
menu.php
168 168 $submenu['plugins.php'][5] = array( __('Installed'), 'activate_plugins', 'plugins.php' ); 169 169 /* translators: add new plugin */ 170 170 $submenu['plugins.php'][10] = array(_x('Add New', 'plugin'), 'install_plugins', 'plugin-install.php'); 171 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 171 172 $plugins = get_plugins(); 173 if( !empty($plugins) ) 174 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 172 175 } 173 176 unset($menu_perms, $update_plugins, $update_count); 174 177 -
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 site.') ); 14 14 15 15 $title = __("Edit Plugins"); 16 16 $parent_file = 'plugins.php'; … … 21 21 22 22 $plugins = get_plugins(); 23 23 24 if( empty($plugins) ) 25 wp_die( __('There are no plugins installed on this site.') ); 26 24 27 if ( isset($_REQUEST['file']) ) 25 28 $plugin = stripslashes($_REQUEST['file']); 26 29