Combine some strings. props pavelevap. fixes #21087.
git-svn-id: https://develop.svn.wordpress.org/trunk@21857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eea7a4b8d3
commit
afbbc9665a
|
@ -62,7 +62,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
|
||||||
} else {
|
} else {
|
||||||
return new WP_Error( 'edit_others_posts', $update ?
|
return new WP_Error( 'edit_others_posts', $update ?
|
||||||
__( 'You are not allowed to edit posts as this user.' ) :
|
__( 'You are not allowed to edit posts as this user.' ) :
|
||||||
__( 'You are not allowed to post as this user.' )
|
__( 'You are not allowed to create posts as this user.' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4059,11 +4059,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
switch ( $post_type ) {
|
switch ( $post_type ) {
|
||||||
case "post":
|
case "post":
|
||||||
if ( !current_user_can( 'edit_others_posts' ) )
|
if ( !current_user_can( 'edit_others_posts' ) )
|
||||||
return(new IXR_Error(401, __('You are not allowed to post as this user')));
|
return( new IXR_Error( 401, __( 'You are not allowed to create posts as this user.' ) ) );
|
||||||
break;
|
break;
|
||||||
case "page":
|
case "page":
|
||||||
if ( !current_user_can( 'edit_others_pages' ) )
|
if ( !current_user_can( 'edit_others_pages' ) )
|
||||||
return(new IXR_Error(401, __('You are not allowed to create pages as this user')));
|
return( new IXR_Error( 401, __( 'You are not allowed to create pages as this user.' ) ) );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return( new IXR_Error( 401, __( 'Invalid post type' ) ) );
|
return( new IXR_Error( 401, __( 'Invalid post type' ) ) );
|
||||||
|
|
Loading…
Reference in New Issue