[wp-trac] [WordPress Trac] #10671: Opt-out of content snuffing for admin ajax

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 22 19:22:16 UTC 2010


#10671: Opt-out of content snuffing for admin ajax
----------------------------+-----------------------------------------------
 Reporter:  niallkennedy    |       Owner:                
     Type:  enhancement     |      Status:  new           
 Priority:  normal          |   Milestone:  3.0           
Component:  Administration  |     Version:  2.8.4         
 Severity:  normal          |    Keywords:  ajax has-patch
----------------------------+-----------------------------------------------

Comment(by chrisscott):

 Combined these into one patch against r13299 in
 attachment:ticket:10671:10671.diff

 Basic testing:

 {{{
 $ curl -I http://trunk.localhost.localdomain/wp-admin/admin-
 ajax.php?action=foo
 HTTP/1.1 200 OK
 Date: Mon, 22 Feb 2010 19:06:29 GMT
 Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8l DAV/2 PHP/5.3.0
 X-Powered-By: PHP/5.3.0
 X-Content-Type-Options: nosniff
 Content-Type: text/html; charset=UTF-8
 }}}

 {{{
 $ curl -I -b [cookie file] http://trunk.localhost.localdomain/wp-admin
 /index-extra.php
 HTTP/1.1 200 OK
 Date: Mon, 22 Feb 2010 19:15:10 GMT
 Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8l DAV/2 PHP/5.3.0
 X-Powered-By: PHP/5.3.0
 Expires: Wed, 11 Jan 1984 05:00:00 GMT
 Last-Modified: Mon, 22 Feb 2010 19:15:10 GMT
 Cache-Control: no-cache, must-revalidate, max-age=0
 Pragma: no-cache
 X-Content-Type-Options: nosniff
 Content-Type: text/html; charset=UTF-8
 }}}

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


More information about the wp-trac mailing list