Make WordPress Core

Ticket #39854: 39854.4.patch

File 39854.4.patch, 1.3 KB (added by sagarkbhatt, 7 years ago)
  • wp-includes/rest-api/class-wp-rest-server.php

    diff --git a/wp-includes/rest-api/class-wp-rest-server.php b/wp-includes/rest-api/class-wp-rest-server.php
    index 4f5ae76..9d4a5fe 100644
    a b class WP_REST_Server { 
    10121012        public function get_index( $request ) {
    10131013                // General site data.
    10141014                $available = array(
    1015                         'name'           => get_option( 'blogname' ),
    1016                         'description'    => get_option( 'blogdescription' ),
    1017                         'url'            => get_option( 'siteurl' ),
    1018                         'home'           => home_url(),
    1019                         'namespaces'     => array_keys( $this->namespaces ),
    1020                         'authentication' => array(),
    1021                         'routes'         => $this->get_data_for_routes( $this->get_routes(), $request['context'] ),
     1015                        'name'            => get_option( 'blogname' ),
     1016                        'description'     => get_option( 'blogdescription' ),
     1017                        'url'             => get_option( 'siteurl' ),
     1018                        'home'            => home_url(),
     1019                        'gmt_offset'      => get_option( 'gmt_offset' ),
     1020                        'timezone_string' => get_option( 'timezone_string' ),
     1021                        'namespaces'      => array_keys( $this->namespaces ),
     1022                        'authentication'  => array(),
     1023                        'routes'          => $this->get_data_for_routes( $this->get_routes(), $request['context'] ),
    10221024                );
    10231025
    10241026                $response = new WP_REST_Response( $available );