[wp-trac] [WordPress Trac] #20148: Preview post in Webkit browser doesn't render Flash objects

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 1 13:42:45 UTC 2012


#20148: Preview post in Webkit browser doesn't render Flash objects
------------------------------+------------------------------
 Reporter:  thomasvanderbeek  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  General           |     Version:  3.3.1
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+------------------------------

Comment (by ocean90):

 Yeah, you are right, this works for me:
 {{{
 function send_no_xss_protection_header( $headers, $object ) {
         if ( ! empty( $object->query_vars['preview'] ) )
                 $headers['X-XSS-Protection'] = 0;

         return $headers;
 }
 add_action( 'wp_headers', 'send_no_xss_protection_header', 10, 2 );
 }}}

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


More information about the wp-trac mailing list