Make WordPress Core

Changeset 35652


Ignore:
Timestamp:
11/17/2015 02:48:21 AM (11 years ago)
Author:
rmccue
Message:

REST API: Include enum and description in help data.

Props lcherpit.
Fixes #34543.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r35514 r35652  
    10651065                                                $arg_data['default'] = $opts['default'];
    10661066                                        }
     1067                                        if ( isset( $opts['enum'] ) ) {
     1068                                                $arg_data['enum'] = $opts['enum'];
     1069                                        }
     1070                                        if ( isset( $opts['description'] ) ) {
     1071                                                $arg_data['description'] = $opts['description'];
     1072                                        }
    10671073                                        $endpoint_data['args'][ $key ] = $arg_data;
    10681074                                }
Note: See TracChangeset for help on using the changeset viewer.