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:
parent
54fd47e1f1
commit
09dd371fc0
@ -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.' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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() ) {
|
||||
|
@ -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"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user