Opened 9 years ago
Closed 6 years ago
#37856 closed defect (bug) (wontfix)
Prepare data before sanity check in wp_json_encode()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | General | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
Splitting this out of #37731 as a followup to #36358.
In wp_json_encode()
, the data is being prepared for JSON sanitization for _wp_json_prepare_data()
. Later on, the call to _wp_json_sanity_check()
doesn't use the prepared data but the raw data instead.
I don't see why this was done that way in #36358, so I'd love to hear what @rmccue has to say about it.
Attachments (1)
Change History (6)
#2
@
6 years ago
- Keywords dev-feedback added
- Milestone changed from Awaiting Review to Future Release
#3
@
6 years ago
@desrosj That's basically the exact same question I asked in #36358 and why that ticket had three potential patches as it wasn't clear at all what the intention was.
@rmccue created the original code and decided it should be patch 1, so I can only defer to his judgement.
Note: See
TracTickets for help on using
tickets.
Props ionutst