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 Feb 19, 2024
1 parent a29db08 commit b8d84db
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

1 comment on commit b8d84db

@github-actions
Copy link

@github-actions github-actions bot commented on b8d84db Feb 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b8d84db.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7954199449
📝 Reported issues:

Please sign in to comment.