Skip to content

Commit 41b3ad3

Browse files
Update src/wp-includes/class-wp-block-type-registry.php
Co-authored-by: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com>
1 parent eba275a commit 41b3ad3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/wp-includes/class-wp-block-type-registry.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ public function register( $name, $args = array() ) {
6565
if ( preg_match( '/[A-Z]+/', $name ) ) {
6666
_doing_it_wrong(
6767
__METHOD__,
68-
/* translators: %s: Block name. */
69-
sprintf( __( 'Block type names must not contain uppercase characters. "%s" was given.' ), $name ),
68+
sprintf( __( 'Block type names must not contain uppercase characters. "%s" was given.' ), esc_html( $name ) ),
7069
'5.0.0'
7170
);
7271
return false;

0 commit comments

Comments
 (0)