mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
REST API: Add permalink_structure to the index endpoint.
This allows Gutenberg to implement permalink editing. Props schlessera. Fixes #42465. git-svn-id: https://develop.svn.wordpress.org/trunk@42142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -665,6 +665,7 @@ class Tests_REST_Server extends WP_Test_REST_TestCase {
|
||||
$this->assertArrayHasKey( 'home', $data );
|
||||
$this->assertArrayHasKey( 'gmt_offset', $data );
|
||||
$this->assertArrayHasKey( 'timezone_string', $data );
|
||||
$this->assertArrayHasKey( 'permalink_structure', $data );
|
||||
$this->assertArrayHasKey( 'namespaces', $data );
|
||||
$this->assertArrayHasKey( 'authentication', $data );
|
||||
$this->assertArrayHasKey( 'routes', $data );
|
||||
|
||||
Reference in New Issue
Block a user