WordPress.org

Make WordPress Core

Changeset 52541


Ignore:
Timestamp:
01/08/2022 07:33:56 AM (2 weeks ago)
Author:
audrasjb
Message:

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.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php

    r52276 r52541  
    817817
    818818        $schema['properties']['object'] = array(
    819             'description' => __( 'The type of object originally represented, such as "category," "post", or "attachment."' ),
     819            'description' => __( 'The type of object originally represented, such as "category", "post", or "attachment".' ),
    820820            'context'     => array( 'view', 'edit', 'embed' ),
    821821            'type'        => 'string',
  • branches/5.9/tests/qunit/fixtures/wp-api-generated.js

    r52434 r52541  
    37623762                        },
    37633763                        "object": {
    3764                             "description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
     3764                            "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
    37653765                            "type": "string",
    37663766                            "required": false
     
    39503950                        },
    39513951                        "object": {
    3952                             "description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
     3952                            "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
    39533953                            "type": "string",
    39543954                            "required": false
     
    41354135                        },
    41364136                        "object": {
    4137                             "description": "The type of object originally represented, such as \"category,\" \"post\", or \"attachment.\"",
     4137                            "description": "The type of object originally represented, such as \"category\", \"post\", or \"attachment\".",
    41384138                            "type": "string",
    41394139                            "required": false
Note: See TracChangeset for help on using the changeset viewer.