From 0bdbce39e1d5c136fb8fd6d1d8f33c34f90944a8 Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Tue, 20 Sep 2022 09:35:46 +0000 Subject: [PATCH] Posts, Post Types: Post title should not be translatable in `get_user_data_from_wp_global_styles` method. In [52280] `wp_template_part` and `wp_template` posts, made the title of the post created not translatable. This was changed [54186] by mistake. This commit reverts that change. Follow up to [54186], [52280]. Props mukesh27, kebbet. See #55392. git-svn-id: https://develop.svn.wordpress.org/trunk@54246 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 42ad830c73..1efb8a4c8a 100644 --- a/src/wp-includes/class-wp-theme-json-resolver.php +++ b/src/wp-includes/class-wp-theme-json-resolver.php @@ -342,7 +342,7 @@ class WP_Theme_JSON_Resolver { array( 'post_content' => '{"version": ' . WP_Theme_JSON::LATEST_SCHEMA . ', "isGlobalStylesUserThemeJSON": true }', 'post_status' => 'publish', - 'post_title' => __( 'Custom Styles' ), + 'post_title' => 'Custom Styles', // Do not make string translatable, see https://core.trac.wordpress.org/ticket/54518. 'post_type' => $post_type_filter, 'post_name' => sprintf( 'wp-global-styles-%s', urlencode( $stylesheet ) ), 'tax_input' => array(