Make WordPress Core

Ticket #35647: 35647.2.diff

File 35647.2.diff, 663 bytes (added by rachelbaker, 9 years ago)

Add home_url key to index

  • src/wp-includes/rest-api/class-wp-rest-server.php

     
    946946                        'name'           => get_option( 'blogname' ),
    947947                        'description'    => get_option( 'blogdescription' ),
    948948                        'url'            => get_option( 'siteurl' ),
     949                        'home_url'       => home_url(),
    949950                        'namespaces'     => array_keys( $this->namespaces ),
    950951                        'authentication' => array(),
    951952                        'routes'         => $this->get_data_for_routes( $this->get_routes(), $request['context'] ),