Make WordPress Core

Changeset 54246


Ignore:
Timestamp:
09/20/2022 09:35:46 AM (19 months ago)
Author:
spacedmonkey
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json-resolver.php

    r54186 r54246  
    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 ) ),
Note: See TracChangeset for help on using the changeset viewer.