Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#35790 closed enhancement (duplicate)

Replace PHP serialized by json encoded for options storage

Reported by: bastho Owned by:
Priority: normal Milestone:
Component: Options, Meta APIs Version:
Severity: normal Keywords:
Cc: Focuses: javascript, performance

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
11 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → 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
11 years ago

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

Note: See TracTickets for help on using tickets.