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.



git-svn-id: https://develop.svn.wordpress.org/trunk@44446 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-08 02:50:05 +00:00
parent 54fd47e1f1
commit 09dd371fc0
3 changed files with 1 additions and 18 deletions

View File

@ -2058,16 +2058,6 @@ function register_initial_settings() {
'description' => __( 'Allow people to post comments on new articles.' ),
)
);
register_setting(
'permalink',
'permalink_structure',
array(
'show_in_rest' => true,
'type' => 'string',
'description' => __( 'Custom URL structure for permalinks and archives.' ),
)
);
}
/**

View File

@ -88,7 +88,6 @@ class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase
'posts_per_page',
'default_ping_status',
'default_comment_status',
'permalink_structure',
);
if ( ! is_multisite() ) {

View File

@ -4634,11 +4634,6 @@ mockedApiResponse.Schema = {
],
"description": "Allow people to post comments on new articles.",
"type": "string"
},
"permalink_structure": {
"required": false,
"description": "Custom URL structure for permalinks and archives.",
"type": "string"
}
}
}
@ -6074,6 +6069,5 @@ mockedApiResponse.settings = {
"default_post_format": "0",
"posts_per_page": 10,
"default_ping_status": "open",
"default_comment_status": "open",
"permalink_structure": null
"default_comment_status": "open"
};