PHPCS: Fix formatting issues.
Fixes formatting issues introduced in [44438]. See #45615. Built from https://develop.svn.wordpress.org/trunk@44441 git-svn-id: http://core.svn.wordpress.org/trunk@44272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7bd6e079f5
commit
4a80373bdf
|
@ -2574,23 +2574,29 @@ function wp_check_filetype_and_ext( $file, $filename, $mimes = null ) {
|
|||
}
|
||||
} elseif ( 'text/plain' === $real_mime ) {
|
||||
// A few common file types are occasionally detected as text/plain; allow those.
|
||||
if ( ! in_array( $type, array(
|
||||
if ( ! in_array(
|
||||
$type,
|
||||
array(
|
||||
'text/plain',
|
||||
'text/csv',
|
||||
'text/richtext',
|
||||
'text/tsv',
|
||||
'text/vtt',
|
||||
) )
|
||||
)
|
||||
)
|
||||
) {
|
||||
$type = $ext = false;
|
||||
}
|
||||
} elseif( 'text/rtf' === $real_mime ) {
|
||||
} elseif ( 'text/rtf' === $real_mime ) {
|
||||
// Special casing for RTF files.
|
||||
if ( ! in_array( $type, array(
|
||||
if ( ! in_array(
|
||||
$type,
|
||||
array(
|
||||
'text/rtf',
|
||||
'text/plain',
|
||||
'application/rtf',
|
||||
) )
|
||||
)
|
||||
)
|
||||
) {
|
||||
$type = $ext = false;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44439';
|
||||
$wp_version = '5.1-alpha-44441';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue