#35790 closed enhancement (duplicate)
Replace PHP serialized by json encoded for options storage
Reported by: | bastho | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | javascript, performance | Cc: |
Description
Serialized objects are tricky to exploit out of PHP, so we often need to convert datas for other languages (mostly JavaScript).
Using json encoding for wp_options
and site_options
would be a good investment for further usages.
The fist step would be to replace old serialized object and convert them to json or changing maybe_serialized()
to detect the current encoding of a string.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hello @bastho, welcome to Trac!
This change was already proposed in #23753 so I'm going to close this ticket as a duplicate.