Make WordPress Core


Ignore:
Timestamp:
03/05/2025 10:15:09 PM (21 months ago)
Author:
flixos90
Message:

Editor: Fix block type and block metadata collection registration issues on Windows due to lack of path normalization.

Props flixos90, gziolo, joemcgill.
Fixes #63027.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/register.php

    r58801 r59938  
    15021502                );
    15031503        }
     1504
     1505        /**
     1506         * @ticket 63027
     1507         *
     1508         * @covers ::register_block_type_from_metadata
     1509         */
     1510        public function test_register_block_type_from_metadata_with_windows_path() {
     1511                $windows_like_path = str_replace( '/', '\\', DIR_TESTDATA ) . '\\blocks\\notice';
     1512
     1513                $this->assertNotFalse( register_block_type_from_metadata( $windows_like_path ) );
     1514        }
    15041515}
Note: See TracChangeset for help on using the changeset viewer.