Make WordPress Core


Ignore:
Timestamp:
11/15/2016 06:15:30 PM (8 years ago)
Author:
joehoyle
Message:

REST API: Clean up argument and property types.

There's a couple of places where we were missing type notes for arguments, which mainly affects documentation.

Props jnylen0.
Fixes #38792.

File:
1 edited

Legend:

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

    r39239 r39250  
    9090                        'description' => __( 'Required to be true, as resource does not support trashing.' ),
    9191                    ),
    92                     'reassign' => array(),
     92                    'reassign' => array(
     93                        'type'        => 'integer',
     94                        'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ),
     95                    ),
    9396                ),
    9497            ),
     
    101104                'callback'            => array( $this, 'get_current_item' ),
    102105                'args'                => array(
    103                     'context'          => array(),
     106                    'context' => $this->get_context_param( array( 'default' => 'view' ) ),
    104107                ),
    105108            ),
     
    120123                        'description' => __( 'Required to be true, as resource does not support trashing.' ),
    121124                    ),
    122                     'reassign' => array(),
     125                    'reassign' => array(
     126                        'type'        => 'integer',
     127                        'description' => __( 'Reassign the deleted user\'s posts and links to this user ID.' ),
     128                    ),
    123129                ),
    124130            ),
Note: See TracChangeset for help on using the changeset viewer.