
如何解决XAMPP中的403错误
wp_ext2type ( $ext )
根据扩展名检索文件类型。
function wp_ext2type( $ext ) { $ext = strtolower( $ext ); $ext2type = wp_get_ext_types(); foreach ( $ext2type as $type => $exts ) { if ( in_array( $ext, $exts, true ) ) { return $type; } } }