[wp-trac] [WordPress Trac] #61911: Incorrect schema for global styles REST API endpoint

WordPress Trac noreply at wordpress.org
Thu Oct 17 11:23:58 UTC 2024


#61911: Incorrect schema for global styles REST API endpoint
-------------------------------+-----------------------
 Reporter:  johnbillion        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  6.8
Component:  Posts, Post Types  |     Version:  5.9
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  rest-api
-------------------------------+-----------------------

Comment (by mikinc860):

 @johnbillion The regular expression for the `id` parameter can be
 simplified. The pattern `(?P<id>[\/\d+]+)` implies that the `id` can
 contain slashes, which is unusual for an integer ID. It would be more
 appropriate to use `(?P<id>\d+)` to match only digits.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61911#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list