Ref checks from mdawaffe.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2006-03-30 23:12:54 +00:00
parent a7337fded7
commit 805df2b129
11 changed files with 27 additions and 3 deletions

View File

@@ -36,8 +36,10 @@ switch($action) {
case 'update':
check_admin_referer();
if ( ! current_user_can('edit_files') )
die('<p>'.__('You have do not have sufficient permissions to edit templates for this blog.').'</p>');
die('<p>'.__('You have do not have sufficient permissions to edit templates for this blog.').'</p>');
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {