Skip to content

Commit

Permalink
No need for first argument (#59160)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
3 people authored and getdave committed Feb 20, 2024
1 parent 234fb7d commit 5044d4c
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,21 +203,15 @@ export default function getGlobalStylesChanges( next, previous, options = {} ) {
switch ( key ) {
case 'blocks': {
return sprintf(
// translators: %2$s: a list of block names separated by a comma.
_n( '%2$s block.', '%2$s blocks.', changeValuesLength ),
changeValuesLength,
// translators: %s: a list of block names separated by a comma.
_n( '%s block.', '%s blocks.', changeValuesLength ),
joinedChangesValue
);
}
case 'elements': {
return sprintf(
// translators: %2$s: a list of element names separated by a comma.
_n(
'%2$s element.',
'%2$s elements.',
changeValuesLength
),
changeValuesLength,
// translators: %s: a list of element names separated by a comma.
_n( '%s element.', '%s elements.', changeValuesLength ),
joinedChangesValue
);
}
Expand Down

0 comments on commit 5044d4c

Please sign in to comment.