diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 9d04906f92..fa87d045e9 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -51,9 +51,11 @@ break; default: require_once('./admin-header.php'); - if ($user_level <= 5) { + if ( $user_level <= 5 ) die(__('

You have do not have sufficient permissions to edit templates for this blog.

')); - } + + if ( strstr( $file, 'wp-config.php' ) ) + die( __('

The config file cannot be edited or viewed through the web interface. Sorry!

') ); update_recently_edited($file);