mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +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:
@@ -673,9 +673,11 @@ class WP_Duotone {
|
||||
|
||||
if ( null === $color ) {
|
||||
$error_message = sprintf(
|
||||
/* translators: %s: duotone colors */
|
||||
__( '"%s" in theme.json settings.color.duotone is not a hex or rgb string.' ),
|
||||
$color_str
|
||||
/* translators: 1: Duotone colors, 2: theme.json, 3: settings.color.duotone */
|
||||
__( '"%1$s" in %2$s %3$s is not a hex or rgb string.' ),
|
||||
$color_str,
|
||||
'theme.json',
|
||||
'settings.color.duotone'
|
||||
);
|
||||
_doing_it_wrong( __METHOD__, $error_message, '6.3.0' );
|
||||
} else {
|
||||
@@ -900,9 +902,10 @@ class WP_Duotone {
|
||||
$global_styles_presets = self::get_all_global_styles_presets();
|
||||
if ( ! array_key_exists( $filter_id, $global_styles_presets ) ) {
|
||||
$error_message = sprintf(
|
||||
/* translators: %s: duotone filter ID */
|
||||
__( 'The duotone id "%s" is not registered in theme.json settings' ),
|
||||
$filter_id
|
||||
/* translators: 1: Duotone filter ID, 2: theme.json */
|
||||
__( 'The duotone id "%1$s" is not registered in %2$s settings' ),
|
||||
$filter_id,
|
||||
'theme.json'
|
||||
);
|
||||
_doing_it_wrong( __METHOD__, $error_message, '6.3.0' );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user