WordPress.org

Make WordPress Core

Ticket #14537: 14537.patch

File 14537.patch, 481 bytes (added by hakre, 5 years ago)

Google Chrome Frame support in Admin for Browsers that have Google Chrome Frame installed.

  • wp-admin/admin.php

     
    5858 
    5959require_once(ABSPATH . 'wp-admin/includes/admin.php'); 
    6060 
     61// Google Chrome Frame Support 
     62if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && strpos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) !== false ) 
     63                header('X-UA-Compatible: chrome=1'); 
     64 
    6165auth_redirect(); 
    6266 
    6367nocache_headers();