Consolidate some strings. Props ramiy. see #20216
git-svn-id: https://develop.svn.wordpress.org/trunk@20215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
43cd1ca516
commit
d89a24a902
@ -499,7 +499,7 @@ EOD;
|
||||
*/
|
||||
function get_attachment($postID = null) {
|
||||
if ( !current_user_can( 'upload_files' ) )
|
||||
$this->auth_required( __( 'Sorry, you do not have permission to upload files.' ) );
|
||||
$this->auth_required( __( 'You do not have permission to upload files.' ) );
|
||||
|
||||
if ( !isset($postID) ) {
|
||||
$this->get_attachments();
|
||||
@ -520,7 +520,7 @@ EOD;
|
||||
$type = $this->get_accepted_content_type();
|
||||
|
||||
if ( !current_user_can('upload_files') )
|
||||
$this->auth_required(__('You do not have permission to upload files.'));
|
||||
$this->auth_required( __( 'You do not have permission to upload files.' ) );
|
||||
|
||||
$fp = fopen("php://input", "rb");
|
||||
$bits = null;
|
||||
|
@ -3097,7 +3097,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
do_action('xmlrpc_call', 'blogger.getTemplate');
|
||||
|
||||
if ( !current_user_can('edit_themes') )
|
||||
return new IXR_Error(401, __('Sorry, this user can not edit the template.'));
|
||||
return new IXR_Error(401, __('Sorry, this user cannot edit the template.'));
|
||||
|
||||
/* warning: here we make the assumption that the blog's URL is on the same server */
|
||||
$filename = get_option('home') . '/';
|
||||
|
Loading…
Reference in New Issue
Block a user