Changeset 59880
- Timestamp:
- 02/27/2025 03:37:22 AM (4 weeks ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r59032 r59880 1372 1372 'gmt_offset' => get_option( 'gmt_offset' ), 1373 1373 'timezone_string' => get_option( 'timezone_string' ), 1374 'page_for_posts' => (int) get_option( 'page_for_posts' ), 1375 'page_on_front' => (int) get_option( 'page_on_front' ), 1376 'show_on_front' => get_option( 'show_on_front' ), 1374 1377 'namespaces' => array_keys( $this->namespaces ), 1375 1378 'authentication' => array(), -
trunk/tests/phpunit/tests/rest-api/rest-server.php
r59032 r59880 1138 1138 $this->assertArrayHasKey( 'gmt_offset', $data ); 1139 1139 $this->assertArrayHasKey( 'timezone_string', $data ); 1140 $this->assertArrayHasKey( 'page_for_posts', $data ); 1141 $this->assertArrayHasKey( 'page_on_front', $data ); 1142 $this->assertArrayHasKey( 'show_on_front', $data ); 1140 1143 $this->assertArrayHasKey( 'namespaces', $data ); 1141 1144 $this->assertArrayHasKey( 'authentication', $data ); -
trunk/tests/qunit/fixtures/wp-api-generated.js
r59801 r59880 13 13 "gmt_offset": "0", 14 14 "timezone_string": "", 15 "page_for_posts": 0, 16 "page_on_front": 0, 17 "show_on_front": "posts", 15 18 "namespaces": [ 16 19 "oembed/1.0",
Note: See TracChangeset
for help on using the changeset viewer.