- Timestamp:
- 11/16/2016 12:17:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39252 r39264 965 965 966 966 if ( ! $user_obj ) { 967 return new WP_Error( 'rest_invalid_author', __( 'Invalid author id.' ), array( 'status' => 400 ) );967 return new WP_Error( 'rest_invalid_author', __( 'Invalid author ID.' ), array( 'status' => 400 ) ); 968 968 } 969 969 } … … 996 996 997 997 if ( empty( $parent ) ) { 998 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post parent id.' ), array( 'status' => 400 ) );998 return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post parent ID.' ), array( 'status' => 400 ) ); 999 999 } 1000 1000 … … 1087 1087 return true; 1088 1088 } else { 1089 return new WP_Error( 'rest_invalid_featured_media', __( 'Invalid featured media id.' ), array( 'status' => 400 ) );1089 return new WP_Error( 'rest_invalid_featured_media', __( 'Invalid featured media ID.' ), array( 'status' => 400 ) ); 1090 1090 } 1091 1091 } else { … … 1718 1718 if ( $post_type_obj->hierarchical ) { 1719 1719 $schema['properties']['parent'] = array( 1720 'description' => __( 'The idfor the parent of the object.' ),1720 'description' => __( 'The ID for the parent of the object.' ), 1721 1721 'type' => 'integer', 1722 1722 'context' => array( 'view', 'edit' ), … … 1832 1832 case 'author': 1833 1833 $schema['properties']['author'] = array( 1834 'description' => __( 'The idfor the author of the object.' ),1834 'description' => __( 'The ID for the author of the object.' ), 1835 1835 'type' => 'integer', 1836 1836 'context' => array( 'view', 'edit', 'embed' ), … … 1870 1870 case 'thumbnail': 1871 1871 $schema['properties']['featured_media'] = array( 1872 'description' => __( 'The idof the featured media for the object.' ),1872 'description' => __( 'The ID of the featured media for the object.' ), 1873 1873 'type' => 'integer', 1874 1874 'context' => array( 'view', 'edit' ), … … 2051 2051 if ( $post_type_obj->hierarchical || 'attachment' === $this->post_type ) { 2052 2052 $params['parent'] = array( 2053 'description' => __( 'Limit result set to those of particular parent ids.' ),2053 'description' => __( 'Limit result set to those of particular parent IDs.' ), 2054 2054 'type' => 'array', 2055 2055 'items' => array( … … 2059 2059 ); 2060 2060 $params['parent_exclude'] = array( 2061 'description' => __( 'Limit result set to all items except those of a particular parent id.' ),2061 'description' => __( 'Limit result set to all items except those of a particular parent ID.' ), 2062 2062 'type' => 'array', 2063 2063 'items' => array(
Note: See TracChangeset
for help on using the changeset viewer.