Make WordPress Core


Ignore:
Timestamp:
11/16/2016 12:17:31 PM (8 years ago)
Author:
SergeyBiryukov
Message:

REST API: Uppercase 'ID' in endpoint descriptions and error messages for consistency with other strings.

See #38791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r39259 r39264  
    10221022                $prepared_comment['comment_author_url'] = $user->user_url;
    10231023            } else {
    1024                 return new WP_Error( 'rest_comment_author_invalid', __( 'Invalid comment author id.' ), array( 'status' => 400 ) );
     1024                return new WP_Error( 'rest_comment_author_invalid', __( 'Invalid comment author ID.' ), array( 'status' => 400 ) );
    10251025            }
    10261026        }
     
    11031103                ),
    11041104                'author'           => array(
    1105                     'description'  => __( 'The id of the user object, if author was a user.' ),
     1105                    'description'  => __( 'The ID of the user object, if author was a user.' ),
    11061106                    'type'         => 'integer',
    11071107                    'context'      => array( 'view', 'edit', 'embed' ),
     
    11881188                ),
    11891189                'parent'           => array(
    1190                     'description'  => __( 'The id for the parent of the object.' ),
     1190                    'description'  => __( 'The ID for the parent of the object.' ),
    11911191                    'type'         => 'integer',
    11921192                    'context'      => array( 'view', 'edit', 'embed' ),
     
    11941194                ),
    11951195                'post'             => array(
    1196                     'description'  => __( 'The id of the associated post object.' ),
     1196                    'description'  => __( 'The ID of the associated post object.' ),
    11971197                    'type'         => 'integer',
    11981198                    'context'      => array( 'view', 'edit' ),
Note: See TracChangeset for help on using the changeset viewer.