WordPress.org

Make WordPress Core

Ticket #25012: 25012-rt.diff

File 25012-rt.diff, 464 bytes (added by iamfriendly, 8 months ago)

Added charset to load-styles.php

  • wp-admin/load-styles.php

    diff --git wp-admin/load-styles.php wp-admin/load-styles.php
    index d2f8bfb..ee3a8f7 100644
    foreach( $load as $handle ) { 
    132132        } 
    133133} 
    134134 
    135 header('Content-Type: text/css'); 
     135header('Content-Type: text/css; charset: ' . get_bloginfo( 'charset' )); 
    136136header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); 
    137137header("Cache-Control: public, max-age=$expires_offset"); 
    138138