Changeset 14290
- Timestamp:
- 04/29/2010 05:34:24 AM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r14189 r14290 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' ); 172 } 173 unset($menu_perms, $update_plugins, $update_count); 171 $plugins = get_plugins(); 172 if( !empty($plugins) ) 173 $submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' ); 174 } 175 unset($menu_perms, $update_plugins, $update_count, $plugins); 174 176 175 177 if ( current_user_can('list_users') ) -
trunk/wp-admin/plugin-editor.php
r14139 r14290 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"); … … 21 21 22 22 $plugins = get_plugins(); 23 24 if( empty($plugins) ) 25 wp_die( __('There are no plugins installed on this site.') ); 23 26 24 27 if ( isset($_REQUEST['file']) )
Note: See TracChangeset
for help on using the changeset viewer.