Skip to content

Commit b460a3f

Browse files
schlesserakuoko
andauthored
Update src/Scaffold_Command.php
Co-Authored-By: kuoko <[email protected]>
1 parent 51a8980 commit b460a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scaffold_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function block( $args, $assoc_args ) {
291291

292292
if ( isset( $control_args['plugin'] ) ) {
293293
if ( ! preg_match( '/^[A-Za-z0-9\-]*$/', $control_args['plugin'] ) ) {
294-
WP_CLI::error( "Invalid plugin name specified. Block work only if the plugin name contains lowercase alphanumeric characters or dashes" );
294+
WP_CLI::error( 'Invalid plugin name specified. The block editor can only register blocks for plugins that have nothing but lowercase alphanumeric characters or dashes in their slug.' );
295295
}
296296
}
297297

0 commit comments

Comments
 (0)