[wp-trac] [WordPress Trac] #25311: Replace PHP-serialized data with JSON in api.wordpress.org

WordPress Trac noreply at wordpress.org
Sat Sep 14 04:48:03 UTC 2013


#25311: Replace PHP-serialized data with JSON in api.wordpress.org
--------------------------------+------------------------------
 Reporter:  scribu              |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  WordPress.org site  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |
--------------------------------+------------------------------

Comment (by dd32):

 Replying to [comment:5 nacin]:
 > which means associative arrays become objects. Here, I've chosen to
 manually convert them back to arrays for storage and reference.

 The 2nd parameter of `json_decode()` can be used to convert them to
 arrays, which is what [25219] did "When TRUE, returned objects will be
 converted into associative arrays."

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25311#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list