First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
| <?php | |
| /** | |
| * Restore CSV upload functionality for WordPress 4.9.9 and up | |
| */ | |
| add_filter('wp_check_filetype_and_ext', function($values, $file, $filename, $mimes) { | |
| if ( extension_loaded( 'fileinfo' ) ) { | |
| // with the php-extension, a CSV file is issues type text/plain so we fix that back to | |
| // text/csv by trusting the file extension. | |
| $finfo = finfo_open( FILEINFO_MIME_TYPE ); | |
| $real_mime = finfo_file( $finfo, $file ); |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update