Make WordPress Core


Ignore:
Timestamp:
04/29/2010 05:34:24 AM (14 years ago)
Author:
nacin
Message:

Don't show plugin editor when there are no plugins. props solarissmoke, fixes #13117.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r14139 r14290  
    1111
    1212if ( !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.') );
    1414
    1515$title = __("Edit Plugins");
     
    2121
    2222$plugins = get_plugins();
     23
     24if( empty($plugins) )
     25    wp_die( __('There are no plugins installed on this site.') );
    2326
    2427if ( isset($_REQUEST['file']) )
Note: See TracChangeset for help on using the changeset viewer.