REST API: Typo correction in a link description object.

This change fixes a wrong punctuation in a link description object of the menu items controller endpoint. It also updates qUnit test fixtures accordingly.

Props la-geek, audrasjb, tobifjellner, hellofromtonya, davidbaumwald.
Merges [52535] and [52536] to the 5.9 branch.
Fixes #54745.


git-svn-id: https://develop.svn.wordpress.org/branches/5.9@52541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-01-08 07:33:56 +00:00
parent 844676b302
commit 8c1e547daf
2 changed files with 4 additions and 4 deletions

View File

@ -816,7 +816,7 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
);
$schema['properties']['object'] = array(
'description' => __( 'The type of object originally represented, such as "category," "post", or "attachment."' ),
'description' => __( 'The type of object originally represented, such as "category", "post", or "attachment".' ),
'context' => array( 'view', 'edit', 'embed' ),
'type' => 'string',
'arg_options' => array(

View File

@ -3761,7 +3761,7 @@ mockedApiResponse.Schema = {
"required": false
},
"object": {
"description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
"description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
"type": "string",
"required": false
},
@ -3949,7 +3949,7 @@ mockedApiResponse.Schema = {
"required": false
},
"object": {
"description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
"description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
"type": "string",
"required": false
},
@ -4134,7 +4134,7 @@ mockedApiResponse.Schema = {
"required": false
},
"object": {
"description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
"description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
"type": "string",
"required": false
},