WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

#1 @ocean90
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hello @bastho, welcome to Trac!

This change was already proposed in #23753 so I'm going to close this ticket as a duplicate.

#2 @bastho
4 years ago

Hi @ocean90 thank you, I could not find the proposal

Note: See TracTickets for help on using tickets.