mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders.
Adjust some newly introduced strings to remove unnecessary numbered placeholders for consistency. Follow-up to [42827]. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@50234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -73,8 +73,8 @@ final class WP_Block_Patterns_Registry {
|
||||
*/
|
||||
public function unregister( $pattern_name ) {
|
||||
if ( ! $this->is_registered( $pattern_name ) ) {
|
||||
/* translators: 1: Pattern name. */
|
||||
$message = sprintf( __( 'Pattern "%1$s" not found.' ), $pattern_name );
|
||||
/* translators: %s: Pattern name. */
|
||||
$message = sprintf( __( 'Pattern "%s" not found.' ), $pattern_name );
|
||||
_doing_it_wrong( __METHOD__, $message, '5.5.0' );
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user