Make WordPress Core


Ignore:
Timestamp:
11/23/2016 02:42:00 AM (8 years ago)
Author:
joehoyle
Message:

REST API: Update “resource” strings to use the appropriate nouns.

Props ramiy.
Fixes #38811.

File:
1 edited

Legend:

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

    r39264 r39342  
    1212 *
    1313 * @since 4.7.0
    14  *
     14 *0
    1515 * @see WP_REST_Controller
    1616 */
     
    9898                        'type'        => 'boolean',
    9999                        'default'     => false,
    100                         'description' => __( 'Required to be true, as resource does not support trashing.' ),
     100                        'description' => __( 'Required to be true, as revisions do not support trashing.' ),
    101101                    ),
    102102                ),
     
    228228        $force = isset( $request['force'] ) ? (bool) $request['force'] : false;
    229229
    230         // We don't support trashing for this resource type.
     230        // We don't support trashing for revisions.
    231231        if ( ! $force ) {
    232232            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.