Make WordPress Core


Ignore:
Timestamp:
11/25/2023 09:17:28 PM (13 months ago)
Author:
SergeyBiryukov
Message:

I18N: Move code out of translatable strings in a few error messages.

Follow-up to [54272], [56101].

Props rabmalin, Presskopp.
Fixes #59563.

File:
1 edited

Legend:

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

    r56812 r57135  
    33913391            || ( '+' !== $spacing_scale['operator'] && '*' !== $spacing_scale['operator'] ) ) {
    33923392            if ( ! empty( $spacing_scale ) ) {
    3393                 trigger_error( __( 'Some of the theme.json settings.spacing.spacingScale values are invalid' ), E_USER_NOTICE );
     3393                trigger_error(
     3394                    sprintf(
     3395                        /* translators: 1: theme.json, 2: settings.spacing.spacingScale */
     3396                        __( 'Some of the %1$s %2$s values are invalid' ),
     3397                        'theme.json',
     3398                        'settings.spacing.spacingScale'
     3399                    ),
     3400                    E_USER_NOTICE
     3401                );
    33943402            }
    33953403            return null;
Note: See TracChangeset for help on using the changeset viewer.