Make WordPress Core


Ignore:
Timestamp:
06/27/2025 08:45:08 PM (14 months ago)
Author:
johnbillion
Message:

Posts, Post Types: Correct the schema for the id property of the global styles REST API endpoint.

This property is an integer as it corresponds to a post ID.

Props narenin, TimothyBlynJacobs, audrasjb, johnbillion, mikinc860, abcd95

Fixes #61911

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r59532 r60359  
    134134                        '/wp/v2/comments',
    135135                        '/wp/v2/comments/(?P<id>[\\d]+)',
    136                         '/wp/v2/global-styles/(?P<id>[\/\w-]+)',
     136                        '/wp/v2/global-styles/(?P<id>[\/\d+]+)',
    137137                        '/wp/v2/global-styles/(?P<parent>[\d]+)/revisions',
    138138                        '/wp/v2/global-styles/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)',
Note: See TracChangeset for help on using the changeset viewer.