Make WordPress Core


Ignore:
Timestamp:
02/27/2025 03:37:22 AM (7 weeks ago)
Author:
Mamaduka
Message:

REST API: Add the site reading options to the index.

Exposes page_for_posts, page_on_front and show_on_front reading settings via REST API index.

Props mamaduka, audrasjb, spacedmonkey, timothyblynjacobs.
Fixes #63023.

File:
1 edited

Legend:

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

    r59032 r59880  
    11381138        $this->assertArrayHasKey( 'gmt_offset', $data );
    11391139        $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 );
    11401143        $this->assertArrayHasKey( 'namespaces', $data );
    11411144        $this->assertArrayHasKey( 'authentication', $data );
Note: See TracChangeset for help on using the changeset viewer.