From 31c461f3c6ac029f68bf281619d0d60b613ef51c Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Wed, 9 Dec 2020 21:26:47 +0000 Subject: [PATCH] Update lib/class-wp-theme-json-resolver.php Co-authored-by: Pascal Birchler --- lib/class-wp-theme-json-resolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-theme-json-resolver.php b/lib/class-wp-theme-json-resolver.php index 022bb2e9966137..1f4cb222b00985 100644 --- a/lib/class-wp-theme-json-resolver.php +++ b/lib/class-wp-theme-json-resolver.php @@ -267,7 +267,7 @@ private static function get_core_origin() { */ private function get_theme_origin( $theme_support_data = array() ) { $theme_json_data = self::get_from_file( locate_template( 'experimental-theme.json' ) ); - self::apply_theme_json_translations( $theme_json_data, wp_get_theme()->get_stylesheet() ); + self::apply_theme_json_translations( $theme_json_data, wp_get_theme()->get( 'TextDomain' ) ); /* * We want the presets and settings declared in theme.json