WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/12/2020 02:40:29 AM (19 months ago)
Author:
TimothyBlynJacobs
Message:

REST API: Introduce "hex-color" JSON Schema format.

Props spacedmonkey, chrisvanpatten.
Fixes #49270.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-test-controller.php

    r46696 r47450  
    6565                    'context' => array( 'view' ),
    6666                ),
     67                'somehex'        => array(
     68                    'type'    => 'string',
     69                    'format'  => 'hex-color',
     70                    'context' => array( 'view' ),
     71                ),
    6772                'someenum'       => array(
    6873                    'type'    => 'string',
Note: See TracChangeset for help on using the changeset viewer.