Make WordPress Core

Changeset 52280


Ignore:
Timestamp:
11/30/2021 03:33:32 PM (7 months ago)
Author:
audrasjb
Message:

Editor: Do not translate the title of "Custom Styles" specific posts.

This change removes the internationalization of the "Custom Styles" specific posts as the post title being hardcoded is consistent with wp_template_part and wp_template post types, and is not publicly visible, except in the database. Moreover, using consistent "Custom Styles" post title may make is easier to retrieve the related posts in the database.

Props antonvlasenko, audrasjb, desrosj, hellofromTonya.
Fixes #54518.

File:
1 edited

Legend:

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

    r52275 r52280  
    274274                    'post_content' => '{"version": ' . WP_Theme_JSON::LATEST_SCHEMA . ', "isGlobalStylesUserThemeJSON": true }',
    275275                    'post_status'  => 'publish',
    276                     'post_title'   => __( 'Custom Styles', 'default' ),
     276                    'post_title'   => 'Custom Styles',
    277277                    'post_type'    => $post_type_filter,
    278278                    'post_name'    => 'wp-global-styles-' . urlencode( wp_get_theme()->get_stylesheet() ),
Note: See TracChangeset for help on using the changeset viewer.