Make WordPress Core


Ignore:
Timestamp:
04/23/2018 04:11:42 AM (8 years ago)
Author:
pento
Message:

REST API: Remove permalink_structure from the index.

This was originally added to allow Gutenberg to do permalink editing, but is no longer required. It's also superceded by #41014.

Reverts [42142].
Fixes #42465.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r42746 r42997  
    10231023                // General site data.
    10241024                $available = array(
    1025                         'name'                => get_option( 'blogname' ),
    1026                         'description'         => get_option( 'blogdescription' ),
    1027                         'url'                 => get_option( 'siteurl' ),
    1028                         'home'                => home_url(),
    1029                         'gmt_offset'          => get_option( 'gmt_offset' ),
    1030                         'timezone_string'     => get_option( 'timezone_string' ),
    1031                         'permalink_structure' => get_option( 'permalink_structure' ),
    1032                         'namespaces'          => array_keys( $this->namespaces ),
    1033                         'authentication'      => array(),
    1034                         'routes'              => $this->get_data_for_routes( $this->get_routes(), $request['context'] ),
     1025                        'name'            => get_option( 'blogname' ),
     1026                        'description'     => get_option( 'blogdescription' ),
     1027                        'url'             => get_option( 'siteurl' ),
     1028                        'home'            => home_url(),
     1029                        'gmt_offset'      => get_option( 'gmt_offset' ),
     1030                        'timezone_string' => get_option( 'timezone_string' ),
     1031                        'namespaces'      => array_keys( $this->namespaces ),
     1032                        'authentication'  => array(),
     1033                        'routes'          => $this->get_data_for_routes( $this->get_routes(), $request['context'] ),
    10351034                );
    10361035
Note: See TracChangeset for help on using the changeset viewer.