[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes

WordPress Trac noreply at wordpress.org
Sat Sep 26 01:10:07 UTC 2020

#50913: PHP 8.0: various compatibility fixes
 Reporter:  jrf                            |       Owner:  SergeyBiryukov
     Type:  task (blessed)                 |      Status:  reviewing
 Priority:  normal                         |   Milestone:  5.6
Component:  General                        |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  php8 has-patch needs-dev-note  |     Focuses:  coding-standards

Comment (by SergeyBiryukov):

 In [changeset:"49049" 49049]:
 #!CommitTicketReference repository="" revision="49049"
 Upload: Add a check in `wp_check_filetype_and_ext()` to account for CSV
 files having the `application/csv` MIME type.

 Previously, the PHP Fileinfo extension used to detect CSV files as

 In PHP 8, this has changed, and CSV files are detected as

 Follow-up to [44438].

 See #50913.

Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list