[wp-trac] [WordPress Trac] #11487: Fix AJAX bug created by web hosts who inject ads into html pages

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 18 20:21:20 UTC 2009


#11487: Fix AJAX bug created by web hosts who inject ads into html pages
--------------------------+-------------------------------------------------
 Reporter:  palotasb      |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:         
 Severity:  normal        |   Resolution:  wontfix
 Keywords:  close         |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * status:  new => closed
  * resolution:  => wontfix
  * milestone:  Unassigned =>


Comment:

 That's pretty ridiculous.  Like Denis said, if you need free or cheap
 hosting, there are better options.

 Since this is such an obscure problem, it's really just plugin material:

 {{{
 function my_text_header() {

    if ( is_defined('DOING_AJAX') && DOING_AJAX  ) {
      @header('Content-Type: text/plain; charset=' .
 get_option('blog_charset'));
    }
 }

 add_action('admin_init', 'my_text_header');

 }}}

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


More information about the wp-trac mailing list