From 7faddb72bcff52f7728808b4a108fdfd3e923cba Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 19 Mar 2012 19:04:49 +0000 Subject: [PATCH] Consolidate some strings. Props ramiy. see #20216 git-svn-id: http://svn.automattic.com/wordpress/trunk@20215 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-atom-server.php | 4 ++-- wp-includes/class-wp-xmlrpc-server.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-atom-server.php b/wp-includes/class-wp-atom-server.php index 1d31c506b..0f046a986 100644 --- a/wp-includes/class-wp-atom-server.php +++ b/wp-includes/class-wp-atom-server.php @@ -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; diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index df8ba6b3e..940f55653 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -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') . '/';