mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Death to trailing tabs. Props Mark J. fixes #2405
git-svn-id: https://develop.svn.wordpress.org/trunk@3517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -52,16 +52,16 @@ case 'update':
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
|
||||
require_once('admin-header.php');
|
||||
if ( !current_user_can('edit_plugins') )
|
||||
die('<p>'.__('You have do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
||||
|
||||
update_recently_edited("wp-content/plugins/$file");
|
||||
|
||||
|
||||
if (!is_file($real_file))
|
||||
$error = 1;
|
||||
|
||||
|
||||
if (!$error) {
|
||||
$f = fopen($real_file, 'r');
|
||||
$content = fread($f, filesize($real_file));
|
||||
|
||||
Reference in New Issue
Block a user