From 3462a37760e0fc80d82c4e80d9062fafea107ac5 Mon Sep 17 00:00:00 2001 From: spacedmonkey Date: Tue, 20 Sep 2022 09:37:09 +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. Built from https://develop.svn.wordpress.org/trunk@54246 git-svn-id: http://core.svn.wordpress.org/trunk@53805 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme-json-resolver.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php index 42ad830c73..1efb8a4c8a 100644 --- a/wp-includes/class-wp-theme-json-resolver.php +++ b/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( diff --git a/wp-includes/version.php b/wp-includes/version.php index 44fd194dd3..851a7280a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54245'; +$wp_version = '6.1-alpha-54246'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.