Make WordPress Core


Ignore:
Timestamp:
07/07/2021 06:59:21 PM (5 years ago)
Author:
desrosj
Message:

Themes: Remove mention of “FSE” in Core.

“FSE” themes are block themes.

Follow up to [51373].

Unprops desrosj.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/tests/phpunit/tests/theme/wpThemeJsonResolver.php

    r51305 r51374  
    9797        public function test_translations_are_applied() {
    9898                add_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
    99                 load_textdomain( 'fse', realpath( DIR_TESTDATA . '/languages/themes/fse-pl_PL.mo' ) );
     99                load_textdomain( 'block-theme', realpath( DIR_TESTDATA . '/languages/themes/block-theme-pl_PL.mo' ) );
    100100
    101                 switch_theme( 'fse' );
     101                switch_theme( 'block-theme' );
    102102
    103103                $actual = WP_Theme_JSON_Resolver::get_theme_data();
    104104
    105                 unload_textdomain( 'fse' );
     105                unload_textdomain( 'block-theme' );
    106106                remove_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
    107107
    108                 $this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'fse' );
     108                $this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'block-theme' );
    109109                $this->assertSame(
    110110                        array(
     
    155155
    156156                // Switch to a theme that does have support.
    157                 switch_theme( 'fse' );
    158                 $fse = WP_Theme_JSON_Resolver::theme_has_support();
     157                switch_theme( 'block-theme' );
     158                $has_theme_json_support = WP_Theme_JSON_Resolver::theme_has_support();
    159159
    160160                $this->assertFalse( $default );
    161                 $this->assertTrue( $fse );
     161                $this->assertTrue( $has_theme_json_support );
    162162        }
    163163
Note: See TracChangeset for help on using the changeset viewer.