From 67d8f09f268677caeb5ad3130605fb2d130bef98 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 30 Nov 2021 15:33:32 +0000 Subject: [PATCH] Editor: Do not translate the title of "Custom Styles" specific posts. This change removes the internationalization of the "Custom Styles" specific posts as the post title being hardcoded is consistent with `wp_template_part` and `wp_template` post types, and is not publicly visible, except in the database. Moreover, using consistent "Custom Styles" post title may make is easier to retrieve the related posts in the database. Props antonvlasenko, audrasjb, desrosj, hellofromTonya. Fixes #54518. git-svn-id: https://develop.svn.wordpress.org/trunk@52280 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme-json-resolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-theme-json-resolver.php b/src/wp-includes/class-wp-theme-json-resolver.php index cfa1c6cd52..b8bb6ec677 100644 --- a/src/wp-includes/class-wp-theme-json-resolver.php +++ b/src/wp-includes/class-wp-theme-json-resolver.php @@ -273,7 +273,7 @@ class WP_Theme_JSON_Resolver { array( 'post_content' => '{"version": ' . WP_Theme_JSON::LATEST_SCHEMA . ', "isGlobalStylesUserThemeJSON": true }', 'post_status' => 'publish', - 'post_title' => __( 'Custom Styles', 'default' ), + 'post_title' => 'Custom Styles', 'post_type' => $post_type_filter, 'post_name' => 'wp-global-styles-' . urlencode( wp_get_theme()->get_stylesheet() ), 'tax_input' => array(