Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#39694 new defect (bug)

wp_check_filetype() returns false for html files

Reported by: onnimonni Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.1
Component: Media Keywords:
Focuses: Cc:


Is this intentional behaviour?


var_dump( wp_check_filetype( 'example.html' ) );


array(2) {
  'ext' =>
  'type' =>

WordPress and PHP versions:

$ wp core version
$ 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

Change History (2)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Media

#2 @joemcgill
5 years ago

Hi @onnimonni. This is probably related to #39550.

Note: See TracTickets for help on using tickets.