Themes: Remove mention of “FSE” in Core.

“FSE” themes are block themes.

Fixes #53497.

git-svn-id: https://develop.svn.wordpress.org/trunk@51370 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2021-07-07 15:48:13 +00:00
parent 00fc6b5ecd
commit 0834d01365
8 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,4 @@
<?php
/**
* Block theme.
*/

View File

@@ -1,7 +1,7 @@
/*
Theme Name: FSE Theme
Theme Name: Block Theme
Theme URI: https://wordpress.org/
Description: For testing purposes only.
Version: 1.0.0
Text Domain: fse
Text Domain: block-theme
*/

View File

@@ -1,4 +0,0 @@
<?php
/**
* Dummy theme.
*/

View File

@@ -347,7 +347,7 @@ class WP_Test_Block_Editor extends WP_UnitTestCase {
* @ticket 53458
*/
function test_get_block_editor_settings_theme_json_settings() {
switch_theme( 'fse' );
switch_theme( 'block-theme' );
$post_editor_context = new WP_Block_Editor_Context( array( 'post' => get_post() ) );

View File

@@ -96,16 +96,16 @@ class Tests_Theme_wpThemeJsonResolver extends WP_UnitTestCase {
*/
public function test_translations_are_applied() {
add_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
load_textdomain( 'fse', realpath( DIR_TESTDATA . '/languages/themes/fse-pl_PL.mo' ) );
load_textdomain( 'block-theme', realpath( DIR_TESTDATA . '/languages/themes/block-theme-pl_PL.mo' ) );
switch_theme( 'fse' );
switch_theme( 'block-theme' );
$actual = WP_Theme_JSON_Resolver::get_theme_data();
unload_textdomain( 'fse' );
unload_textdomain( 'block-theme' );
remove_filter( 'locale', array( $this, 'filter_set_locale_to_polish' ) );
$this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'fse' );
$this->assertSame( wp_get_theme()->get( 'TextDomain' ), 'block-theme' );
$this->assertSame(
array(
'color' => array(
@@ -183,11 +183,11 @@ class Tests_Theme_wpThemeJsonResolver extends WP_UnitTestCase {
$default = WP_Theme_JSON_Resolver::theme_has_support();
// Switch to a theme that does have support.
switch_theme( 'fse' );
$fse = WP_Theme_JSON_Resolver::theme_has_support();
switch_theme( 'block-theme' );
$has_theme_json_support = WP_Theme_JSON_Resolver::theme_has_support();
$this->assertFalse( $default );
$this->assertTrue( $fse );
$this->assertTrue( $has_theme_json_support );
}
}