Make WordPress Core

Changeset 57104


Ignore:
Timestamp:
11/10/2023 06:59:59 PM (10 months ago)
Author:
flixos90
Message:

Tests: Fix incorrect check for block themes in legacy PHPUnit test for themes.

Props mukesh27.
Fixes #59881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme.php

    r57009 r57104  
    318318
    319319                // Skip block themes for get_query_template() tests since this test is focused on classic templates.
    320                 if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) {
     320                if ( wp_is_block_theme() || wp_theme_has_theme_json() ) {
    321321                    continue;
    322322                }
Note: See TracChangeset for help on using the changeset viewer.