WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/10/2017 06:10:23 AM (4 years ago)
Author:
pento
Message:

REST API: Add permalink_structure to the index endpoint.

This allows Gutenberg to implement permalink editing.

Props schlessera.
Fixes #42465.

File:
1 edited

Legend:

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

    r41223 r42142  
    666666        $this->assertArrayHasKey( 'gmt_offset', $data );
    667667        $this->assertArrayHasKey( 'timezone_string', $data );
     668        $this->assertArrayHasKey( 'permalink_structure', $data );
    668669        $this->assertArrayHasKey( 'namespaces', $data );
    669670        $this->assertArrayHasKey( 'authentication', $data );
Note: See TracChangeset for help on using the changeset viewer.