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
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user