Make WordPress Core


Ignore:
Timestamp:
01/03/2015 02:56:14 AM (10 years ago)
Author:
wonderboymusic
Message:

When outputting JS with a Content-Type header:

text/javascript is obsolete, application/x-javascript was experimental. application/javascript is the recommended type per RFC 4329.

Props sergej.mueller.
Fixes #29196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/wp-tinymce.php

    r29015 r31029  
    2222$expires_offset = 31536000; // 1 year
    2323
    24 header('Content-Type: application/x-javascript; charset=UTF-8');
     24header('Content-Type: application/javascript; charset=UTF-8');
    2525header('Vary: Accept-Encoding'); // Handle proxies
    2626header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
Note: See TracChangeset for help on using the changeset viewer.