[wp-trac] [WordPress Trac] #39694: wp_check_filetype() returns false for html files
WordPress Trac
noreply at wordpress.org
Wed Jan 25 20:58:21 UTC 2017
#39694: wp_check_filetype() returns false for html files
--------------------------+-----------------------------
Reporter: onnimonni | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Is this intentional behaviour?
Running:
{{{#!php
<?php
var_dump( wp_check_filetype( 'example.html' ) );
}}}
outputs:
{{{
array(2) {
'ext' =>
bool(false)
'type' =>
bool(false)
}
}}}
WordPress and PHP versions:
{{{
$ wp core version
4.7.1
$ php --version
PHP 7.0.15-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.15-1~dotdeb+8.1, Copyright (c) 1999-2017, by
Zend Technologies
with Xdebug v2.5.0, Copyright (c) 2002-2016, by Derick Rethans
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39694>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list