[wp-trac] [WordPress Trac] #19448: Encoding errors in AJAX responses

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 15 18:46:47 UTC 2012


#19448: Encoding errors in AJAX responses
-------------------------------------+-------------------------------------
 Reporter:  sergey.s.betke@…         |       Owner:  sergey.s.betke@…
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  3.5
Component:  Administration           |     Version:  3.2.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch commit         |
-------------------------------------+-------------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:11 ryan]:
 > Should send() even do the header() call if DOING_AJAX? admin-ajax.php
 probably already took care of it.

 The `header()` call in `admin-ajax.php` sets `Content-Type: text/html`:
 [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-admin/admin-
 ajax.php#L32

 Removing the one in `send()` would break XML responses (e.g. when adding a
 tag).

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


More information about the wp-trac mailing list