mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
I18N: Move code out of translatable strings in a few error messages.
Follow-up to [54272], [56101]. Props rabmalin, Presskopp. Fixes #59563. git-svn-id: https://develop.svn.wordpress.org/trunk@57135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3390,7 +3390,15 @@ class WP_Theme_JSON {
|
||||
|| ! is_numeric( $spacing_scale['mediumStep'] )
|
||||
|| ( '+' !== $spacing_scale['operator'] && '*' !== $spacing_scale['operator'] ) ) {
|
||||
if ( ! empty( $spacing_scale ) ) {
|
||||
trigger_error( __( 'Some of the theme.json settings.spacing.spacingScale values are invalid' ), E_USER_NOTICE );
|
||||
trigger_error(
|
||||
sprintf(
|
||||
/* translators: 1: theme.json, 2: settings.spacing.spacingScale */
|
||||
__( 'Some of the %1$s %2$s values are invalid' ),
|
||||
'theme.json',
|
||||
'settings.spacing.spacingScale'
|
||||
),
|
||||
E_USER_NOTICE
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user