[wp-trac] [WordPress Trac] #56494: REST API: Fix and test rest_default_additional_properties_to_false

WordPress Trac noreply at wordpress.org
Sat Oct 1 02:37:16 UTC 2022


#56494: REST API: Fix and test rest_default_additional_properties_to_false
--------------------------------------+------------------------------
 Reporter:  anna.bansaghi             |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:  6.0.2
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by anna.bansaghi):

 # Solution 1.5

 I have just realized, that we have a third solution too :)
 https://github.com/WordPress/wordpress-develop/pull/3386


 It is that version which you have already seen @TimothyBlynJacobs, a
 variant of the Solution 1.
 The difference is that Solution 1.5 does not throw a notice if the `type`
 is missing on the schema, it just silently discards it from further
 traversal. Everything else is the same as for Solution 1.

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


More information about the wp-trac mailing list