Changeset 42142
- Timestamp:
- 11/10/2017 06:10:23 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r41223 r42142 1018 1018 // General site data. 1019 1019 $available = array( 1020 'name' => get_option( 'blogname' ), 1021 'description' => get_option( 'blogdescription' ), 1022 'url' => get_option( 'siteurl' ), 1023 'home' => home_url(), 1024 'gmt_offset' => get_option( 'gmt_offset' ), 1025 'timezone_string' => get_option( 'timezone_string' ), 1026 'namespaces' => array_keys( $this->namespaces ), 1027 'authentication' => array(), 1028 'routes' => $this->get_data_for_routes( $this->get_routes(), $request['context'] ), 1020 'name' => get_option( 'blogname' ), 1021 'description' => get_option( 'blogdescription' ), 1022 'url' => get_option( 'siteurl' ), 1023 'home' => home_url(), 1024 'gmt_offset' => get_option( 'gmt_offset' ), 1025 'timezone_string' => get_option( 'timezone_string' ), 1026 'permalink_structure' => get_option( 'permalink_structure' ), 1027 'namespaces' => array_keys( $this->namespaces ), 1028 'authentication' => array(), 1029 'routes' => $this->get_data_for_routes( $this->get_routes(), $request['context'] ), 1029 1030 ); 1030 1031 -
trunk/tests/phpunit/tests/rest-api/rest-server.php
r41223 r42142 666 666 $this->assertArrayHasKey( 'gmt_offset', $data ); 667 667 $this->assertArrayHasKey( 'timezone_string', $data ); 668 $this->assertArrayHasKey( 'permalink_structure', $data ); 668 669 $this->assertArrayHasKey( 'namespaces', $data ); 669 670 $this->assertArrayHasKey( 'authentication', $data ); -
trunk/tests/qunit/fixtures/wp-api-generated.js
r42032 r42142 13 13 "gmt_offset": "0", 14 14 "timezone_string": "", 15 "permalink_structure": false, 15 16 "namespaces": [ 16 17 "oembed/1.0",
Note: See TracChangeset
for help on using the changeset viewer.