Changeset 54508
- Timestamp:
- 10/13/2022 04:34:42 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r54402 r54508 1416 1416 */ 1417 1417 public function test_wp_check_filetype_and_ext_with_filtered_woff() { 1418 if ( PHP_VERSION_ID >= 80200 ) { 1419 /* 1420 * For the time being, this test is marked skipped on PHP 8.2 as a recent change introduced 1421 * an inconsistency with how the mime-type for WOFF files are handled compared to older versions. 1422 * 1423 * See https://core.trac.wordpress.org/ticket/56817 for more details. 1424 */ 1425 $this->markTestSkipped( 'This test currently fails on PHP 8.2RC3 and requires further investigation.' ); 1426 } 1427 1418 1428 $file = DIR_TESTDATA . '/uploads/dashicons.woff'; 1419 1429 $filename = 'dashicons.woff'; … … 1438 1448 1439 1449 public function filter_mime_types_woff( $mimes ) { 1440 $mimes['woff'] = ' application/font-woff';1450 $mimes['woff'] = 'font-woff/font-woff'; 1441 1451 return $mimes; 1442 1452 }
Note: See TracChangeset
for help on using the changeset viewer.