Make WordPress Core


Ignore:
Timestamp:
11/17/2016 03:52:18 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy.

Props ramiy, SergeyBiryukov.
Fixes #38808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r39045 r39278  
    12711271        } elseif ( isset( $post_data['sticky'] ) )  {
    12721272            if ( ! current_user_can( $post_type->cap->edit_others_posts ) ) {
    1273                 return new IXR_Error( 401, __( 'Sorry, you are not allowed to stick this post.' ) );
     1273                return new IXR_Error( 401, __( 'Sorry, you are not allowed to make posts sticky.' ) );
    12741274            }
    12751275
     
    17961796
    17971797        if ( ! current_user_can( $post_type->cap->edit_posts ) )
    1798             return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ));
     1798            return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
    17991799
    18001800        $query['post_type'] = $post_type->name;
     
    41184118
    41194119        if ( ! current_user_can( $post_type->cap->edit_posts ) )
    4120             return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post type.' ) );
     4120            return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
    41214121
    41224122        return $this->_prepare_post_type( $post_type, $fields );
Note: See TracChangeset for help on using the changeset viewer.