WordPress.org

Make WordPress Core

Ticket #17256: patch_commit_2850cf365c47.patch

File patch_commit_2850cf365c47.patch, 521 bytes (added by dvwallin, 3 years ago)
  • wp-includes/ms-files.php

    diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php
    index 5ec6d1d..22ae99c 100644
    a b if( $mime[ 'type' ] ) 
    3838else 
    3939        $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); 
    4040 
    41 header( 'Content-type: ' . $mimetype ); // always send this 
     41header( "Content-Type: $mimetype" ); // always send this 
    4242if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) 
    4343        header( 'Content-Length: ' . filesize( $file ) ); 
    4444