Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #64926, comment 5


Ignore:
Timestamp:
03/25/2026 01:29:18 AM (3 months ago)
Author:
dsmy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64926, comment 5

    initial v1  
    11Indeed, weird things happening between GET and POST handling.
    22
    3 The fix in rest_validate_value_from_schema() closes that gap — when the schema expects object or array and the incoming value is a string, attempt json_decode() before rejecting. This logic already exists in rest_sanitize_value_from_schema(); the validation step just doesn't mirror it.
     3The fix in rest_validate_value_from_schema() closes that gap when the schema expects object or array and the incoming value is a string, attempt json_decode() before rejecting. This logic already exists in rest_sanitize_value_from_schema(); the validation step should mirror it.
     4
     5Appreciate the extra perspective too!
    46
    57Replying to [comment:1 abcd95]: