Skip to content

Commit

Permalink
Posts: update admin notices to refer to patterns.
Browse files Browse the repository at this point in the history
Updates `wp_block` action notices to refer to patterns instead of blocks.

Props aaronrobertshaw, mukesh27, oglekler.
Fixes #59305.


git-svn-id: https://develop.svn.wordpress.org/trunk@56606 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
tellthemachines committed Sep 18, 2023
1 parent da48a9e commit 3239a8e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/wp-admin/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,17 +381,17 @@
'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
);
$bulk_messages['wp_block'] = array(
/* translators: %s: Number of blocks. */
'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
/* translators: %s: Number of blocks. */
_n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
/* translators: %s: Number of blocks. */
'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
/* translators: %s: Number of blocks. */
'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
/* translators: %s: Number of blocks. */
'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
/* translators: %s: Number of patterns. */
'updated' => _n( '%s pattern updated.', '%s patterns updated.', $bulk_counts['updated'] ),
'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 pattern not updated, somebody is editing it.' ) :
/* translators: %s: Number of patterns. */
_n( '%s pattern not updated, somebody is editing it.', '%s patterns not updated, somebody is editing them.', $bulk_counts['locked'] ),
/* translators: %s: Number of patterns. */
'deleted' => _n( '%s pattern permanently deleted.', '%s patterns permanently deleted.', $bulk_counts['deleted'] ),
/* translators: %s: Number of patterns. */
'trashed' => _n( '%s pattern moved to the Trash.', '%s patterns moved to the Trash.', $bulk_counts['trashed'] ),
/* translators: %s: Number of patterns. */
'untrashed' => _n( '%s pattern restored from the Trash.', '%s patterns restored from the Trash.', $bulk_counts['untrashed'] ),
);

/**
Expand Down

0 comments on commit 3239a8e

Please sign in to comment.