- Timestamp:
- 11/23/2016 02:42:00 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r39264 r39342 12 12 * 13 13 * @since 4.7.0 14 * 14 *0 15 15 * @see WP_REST_Controller 16 16 */ … … 98 98 'type' => 'boolean', 99 99 'default' => false, 100 'description' => __( 'Required to be true, as re source doesnot support trashing.' ),100 'description' => __( 'Required to be true, as revisions do not support trashing.' ), 101 101 ), 102 102 ), … … 228 228 $force = isset( $request['force'] ) ? (bool) $request['force'] : false; 229 229 230 // We don't support trashing for this resource type.230 // We don't support trashing for revisions. 231 231 if ( ! $force ) { 232 232 return new WP_Error( 'rest_trash_not_supported', __( 'Revisions do not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) );
Note: See TracChangeset
for help on using the changeset viewer.