Changeset 44441 for trunk/src/wp-includes/functions.php
- Timestamp:
- 01/07/2019 09:08:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r44438 r44441 2575 2575 } elseif ( 'text/plain' === $real_mime ) { 2576 2576 // A few common file types are occasionally detected as text/plain; allow those. 2577 if ( ! in_array( $type, array( 2577 if ( ! in_array( 2578 $type, 2579 array( 2578 2580 'text/plain', 2579 2581 'text/csv', … … 2581 2583 'text/tsv', 2582 2584 'text/vtt', 2583 ) ) 2585 ) 2586 ) 2584 2587 ) { 2585 2588 $type = $ext = false; 2586 2589 } 2587 } elseif ( 'text/rtf' === $real_mime ) {2590 } elseif ( 'text/rtf' === $real_mime ) { 2588 2591 // Special casing for RTF files. 2589 if ( ! in_array( $type, array( 2592 if ( ! in_array( 2593 $type, 2594 array( 2590 2595 'text/rtf', 2591 2596 'text/plain', 2592 2597 'application/rtf', 2593 ) ) 2598 ) 2599 ) 2594 2600 ) { 2595 2601 $type = $ext = false;
Note: See TracChangeset
for help on using the changeset viewer.