Skip to content

Commit 0bdbce3

Browse files
committed
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
1 parent 58433f0 commit 0bdbce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-theme-json-resolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public static function get_user_data_from_wp_global_styles( $theme, $create_post
342342
array(
343343
'post_content' => '{"version": ' . WP_Theme_JSON::LATEST_SCHEMA . ', "isGlobalStylesUserThemeJSON": true }',
344344
'post_status' => 'publish',
345-
'post_title' => __( 'Custom Styles' ),
345+
'post_title' => 'Custom Styles', // Do not make string translatable, see https://core.trac.wordpress.org/ticket/54518.
346346
'post_type' => $post_type_filter,
347347
'post_name' => sprintf( 'wp-global-styles-%s', urlencode( $stylesheet ) ),
348348
'tax_input' => array(

0 commit comments

Comments
 (0)