[wp-trac] [WordPress Trac] #64252: Fix: Core abilities schemas.

WordPress Trac noreply at wordpress.org
Fri Nov 14 16:55:55 UTC 2025


#64252: Fix: Core abilities schemas.
------------------------------------+-------------------------------
 Reporter:  jorgefilipecosta        |       Owner:  jorgefilipecosta
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  6.9
Component:  General                 |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-reviewed  |     Focuses:
------------------------------------+-------------------------------
Changes (by gziolo):

 * keywords:  has-patch dev-feedback => has-patch dev-reviewed


Comment:

 I reviewed the patch, and it looks good. Adding a unit test covering this
 edge case would be beneficial.

 @jorbin, good question whether it would make sense to lift it up higher in
 the REST API handler. My understanding is that this problem exists
 primarily when you pass JSON as data in the response. In this particular
 case, we know exactly the expected `type` of the `default` value, so we
 can correct it accordingly so it transforms correctly when serialized to
 JSON.

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


More information about the wp-trac mailing list