[wp-trac] [WordPress Trac] #11537: Warning: Cannot modify header information… in class-json.php

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 21 16:43:09 UTC 2009


#11537: Warning: Cannot modify header information… in class-json.php
------------------------------+---------------------------------------------
 Reporter:  zigazou           |       Owner:  Viper007Bond
     Type:  defect (bug)      |      Status:  assigned    
 Priority:  normal            |   Milestone:  2.9.1       
Component:  Warnings/Notices  |     Version:  2.9         
 Severity:  normal            |    Keywords:              
------------------------------+---------------------------------------------

Comment(by nacin):

 Replying to [comment:4 westi]:
 > Seems I was looking at a very old version.
 Yes, but for reference, the versions you and I found are identical except
 for changes to the encode function (its split into encode and _encode),
 including the adding of headers.

 > Based on that should we also not be using encodeUnsafe from out
 json_encode function so as to not send headers and match the PHP
 functionality.
 Yes, that sounds accurate, to me at least.

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


More information about the wp-trac mailing list