WordPress.org

Make WordPress Core

Ticket #14253: 14253.diff

File 14253.diff, 1.4 KB (added by wonderboymusic, 5 years ago)
  • wp-includes/functions.php

     
    14371437/**
    14381438 * Determine if a directory is writable.
    14391439 *
    1440  * This function is used to work around certain ACL issues 
     1440 * This function is used to work around certain ACL issues
    14411441 * in PHP primarily affecting Windows Servers.
    14421442 *
    14431443 * @see win_is_writable()
     
    14571457/**
    14581458 * Workaround for Windows bug in is_writable() function
    14591459 *
    1460  * PHP has issues with Windows ACL's for determine if a 
     1460 * PHP has issues with Windows ACL's for determine if a
    14611461 * directory is writable or not, this works around them by
    14621462 * checking the ability to open files rather than relying
    14631463 * upon PHP to interprate the OS ACL.
     
    19121912        'tif|tiff' => 'image/tiff',
    19131913        'ico' => 'image/x-icon',
    19141914        // Video formats
    1915         'asf|asx|wax|wmv|wmx' => 'video/asf',
     1915        'asf|asx' => 'video/x-ms-asf',
     1916        'wmv' => 'video/x-ms-wmv',
     1917        'wmx' => 'video/x-ms-wmx',
     1918        'wm' => 'video/x-ms-wm',
    19161919        'avi' => 'video/avi',
    19171920        'divx' => 'video/divx',
    19181921        'flv' => 'video/x-flv',
     
    19361939        'wav' => 'audio/wav',
    19371940        'ogg|oga' => 'audio/ogg',
    19381941        'mid|midi' => 'audio/midi',
    1939         'wma' => 'audio/wma',
     1942        'wma' => 'audio/x-ms-wma',
     1943        'wax' => 'audio/x-ms-wax',
    19401944        'mka' => 'audio/x-matroska',
    19411945        // Misc application formats
    19421946        'rtf' => 'application/rtf',