[wp-trac] [WordPress Trac] #11827: json_encode and json_decode functions in compat.php do not safely include class-json.php

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 8 20:33:59 UTC 2010


#11827: json_encode and json_decode functions in compat.php do not safely include
class-json.php
--------------------------+-------------------------------------------------
 Reporter:  alexkingorg   |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  high          |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  major         |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by alexkingorg):

 I prefer class_exists better too, but was using the code used elsewhere in
 WP under the assumption is was preferred for some reason. Patching the
 class file means every plugin/theme doesn't have to do the check, which is
 nice.

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


More information about the wp-trac mailing list