We talk good. Fixes #2632
git-svn-id: http://svn.automattic.com/wordpress/trunk@3949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7569167a7b
commit
c13781fc79
|
@ -23,7 +23,7 @@ case 'update':
|
||||||
check_admin_referer('edit-plugin_' . $file);
|
check_admin_referer('edit-plugin_' . $file);
|
||||||
|
|
||||||
if ( !current_user_can('edit_plugins') )
|
if ( !current_user_can('edit_plugins') )
|
||||||
die('<p>'.__('You have do not have sufficient permissions to edit templates for this blog.').'</p>');
|
die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
|
||||||
|
|
||||||
$newcontent = stripslashes($_POST['newcontent']);
|
$newcontent = stripslashes($_POST['newcontent']);
|
||||||
if (is_writeable($real_file)) {
|
if (is_writeable($real_file)) {
|
||||||
|
@ -43,7 +43,7 @@ default:
|
||||||
|
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
if ( !current_user_can('edit_plugins') )
|
if ( !current_user_can('edit_plugins') )
|
||||||
die('<p>'.__('You have do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
|
||||||
|
|
||||||
update_recently_edited("wp-content/plugins/$file");
|
update_recently_edited("wp-content/plugins/$file");
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ default:
|
||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
if ( ! current_user_can('edit_files') )
|
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 do not have sufficient permissions to edit templates for this blog.').'</p>');
|
||||||
|
|
||||||
if ( strstr( $file, 'wp-config.php' ) )
|
if ( strstr( $file, 'wp-config.php' ) )
|
||||||
die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');
|
die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');
|
||||||
|
|
|
@ -36,7 +36,7 @@ case 'update':
|
||||||
check_admin_referer('edit-theme_' . $file . $theme);
|
check_admin_referer('edit-theme_' . $file . $theme);
|
||||||
|
|
||||||
if ( !current_user_can('edit_themes') )
|
if ( !current_user_can('edit_themes') )
|
||||||
die('<p>'.__('You have do not have sufficient permissions to edit templates for this blog.').'</p>');
|
die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
|
||||||
|
|
||||||
$newcontent = stripslashes($_POST['newcontent']);
|
$newcontent = stripslashes($_POST['newcontent']);
|
||||||
$theme = urlencode($theme);
|
$theme = urlencode($theme);
|
||||||
|
@ -57,7 +57,7 @@ default:
|
||||||
|
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
if ( !current_user_can('edit_themes') )
|
if ( !current_user_can('edit_themes') )
|
||||||
die('<p>'.__('You have do not have sufficient permissions to edit themes for this blog.').'</p>');
|
die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
|
||||||
|
|
||||||
update_recently_edited($file);
|
update_recently_edited($file);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue