Changeset 44443 for branches/5.0/src/wp-includes/functions.php
- Timestamp:
- 01/07/2019 10:22:03 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 44438-44439,44441-44442
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/functions.php
r44407 r44443 2374 2374 * and some media files are commonly named with the wrong extension (.mov instead of .mp4) 2375 2375 */ 2376 2377 2376 if ( substr( $real_mime, 0, strcspn( $real_mime, '/' ) ) !== substr( $type, 0, strcspn( $type, '/' ) ) ) { 2377 $type = $ext = false; 2378 } 2379 } elseif ( 'text/plain' === $real_mime ) { 2380 // A few common file types are occasionally detected as text/plain; allow those. 2381 if ( ! in_array( 2382 $type, 2383 array( 2384 'text/plain', 2385 'text/csv', 2386 'text/richtext', 2387 'text/tsv', 2388 'text/vtt', 2389 ) 2390 ) 2391 ) { 2392 $type = $ext = false; 2393 } 2394 } elseif ( 'text/rtf' === $real_mime ) { 2395 // Special casing for RTF files. 2396 if ( ! in_array( 2397 $type, 2398 array( 2399 'text/rtf', 2400 'text/plain', 2401 'application/rtf', 2402 ) 2403 ) 2404 ) { 2378 2405 $type = $ext = false; 2379 2406 }
Note: See TracChangeset
for help on using the changeset viewer.