- Timestamp:
- 11/11/2019 02:41:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r46586 r46696 119 119 * 120 120 * @param WP_REST_Request $request Full details about the request. 121 * @return WP_Error|boolTrue if the request has read access, error object otherwise.121 * @return true|WP_Error True if the request has read access, error object otherwise. 122 122 */ 123 123 public function get_items_permissions_check( $request ) { … … 176 176 * 177 177 * @param WP_REST_Request $request Full details about the request. 178 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.178 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 179 179 */ 180 180 public function get_items( $request ) { … … 350 350 * 351 351 * @param WP_REST_Request $request Full details about the request. 352 * @return WP_Error|boolTrue if the request has read access for the item, error object otherwise.352 * @return true|WP_Error True if the request has read access for the item, error object otherwise. 353 353 */ 354 354 public function get_item_permissions_check( $request ) { … … 381 381 * 382 382 * @param WP_REST_Request $request Full details about the request. 383 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.383 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 384 384 */ 385 385 public function get_item( $request ) { … … 401 401 * 402 402 * @param WP_REST_Request $request Full details about the request. 403 * @return WP_Error|boolTrue if the request has access to create items, error object otherwise.403 * @return true|WP_Error True if the request has access to create items, error object otherwise. 404 404 */ 405 405 public function create_item_permissions_check( $request ) { … … 491 491 * 492 492 * @param WP_REST_Request $request Full details about the request. 493 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.493 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 494 494 */ 495 495 public function create_item( $request ) { … … 668 668 * 669 669 * @param WP_REST_Request $request Full details about the request. 670 * @return WP_Error|boolTrue if the request has access to update the item, error object otherwise.670 * @return true|WP_Error True if the request has access to update the item, error object otherwise. 671 671 */ 672 672 public function update_item_permissions_check( $request ) { … … 689 689 * 690 690 * @param WP_REST_Request $request Full details about the request. 691 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.691 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 692 692 */ 693 693 public function update_item( $request ) { … … 788 788 * 789 789 * @param WP_REST_Request $request Full details about the request. 790 * @return WP_Error|boolTrue if the request has access to delete the item, error object otherwise.790 * @return true|WP_Error True if the request has access to delete the item, error object otherwise. 791 791 */ 792 792 public function delete_item_permissions_check( $request ) { … … 808 808 * 809 809 * @param WP_REST_Request $request Full details about the request. 810 * @return WP_ Error|WP_REST_ResponseResponse object on success, or error object on failure.810 * @return WP_REST_Response|WP_Error Response object on success, or error object on failure. 811 811 */ 812 812 public function delete_item( $request ) { … … 1692 1692 * @param WP_REST_Request $request Full details about the request. 1693 1693 * @param string $param The parameter name. 1694 * @return WP_Error|stringThe sanitized email address, if valid,1694 * @return string|WP_Error The sanitized email address, if valid, 1695 1695 * otherwise an error. 1696 1696 */
Note: See TracChangeset
for help on using the changeset viewer.