[wp-trac] [WordPress Trac] #11537: Warning: Cannot modify header information… in class-json.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 22 01:05:54 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 Viper007Bond):
Yeah, it's just PEAR's JSON package:
http://pear.php.net/package/Services_JSON
They fixed this bug in v1.0.1:
Fixed Bug #16585 - Fix correct mime type for encode() - note use
encodeUnsafe() to prevent headers being sent.
So yes, updating our wrapper to use `encodeUnsafe()` should do the trick.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11537#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list