WordPress.org

Make WordPress Core

Changeset 44446


Ignore:
Timestamp:
01/08/2019 02:50:05 AM (2 years ago)
Author:
pento
Message:

REST API: Remove permalink_structure from the REST API settings endpoint.

This was ultimately fixed in #45017, so is redunant.

Reverts [42142,42359,42540].
See #41014.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r43571 r44446  
    20592059        )
    20602060    );
    2061 
    2062     register_setting(
    2063         'permalink',
    2064         'permalink_structure',
    2065         array(
    2066             'show_in_rest' => true,
    2067             'type'         => 'string',
    2068             'description'  => __( 'Custom URL structure for permalinks and archives.' ),
    2069         )
    2070     );
    20712061}
    20722062
  • trunk/tests/phpunit/tests/rest-api/rest-settings-controller.php

    r43571 r44446  
    8989            'default_ping_status',
    9090            'default_comment_status',
    91             'permalink_structure',
    9291        );
    9392
  • trunk/tests/qunit/fixtures/wp-api-generated.js

    r44269 r44446  
    46344634                            ],
    46354635                            "description": "Allow people to post comments on new articles.",
    4636                             "type": "string"
    4637                         },
    4638                         "permalink_structure": {
    4639                             "required": false,
    4640                             "description": "Custom URL structure for permalinks and archives.",
    46414636                            "type": "string"
    46424637                        }
     
    60756070    "posts_per_page": 10,
    60766071    "default_ping_status": "open",
    6077     "default_comment_status": "open",
    6078     "permalink_structure": null
     6072    "default_comment_status": "open"
    60796073};
Note: See TracChangeset for help on using the changeset viewer.