Skip to content

Commit e8a2d24

Browse files
Update src/Block_Type_Command.php
Co-authored-by: Pascal Birchler <pascal.birchler@gmail.com>
1 parent 86ba114 commit e8a2d24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Block_Type_Command.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function get( $args, $assoc_args ) {
280280
*/
281281
public function exists( $args ) {
282282
$registry = WP_Block_Type_Registry::get_instance();
283-
$block_type = $registry->get_registered( $args[0] );
283+
$block_type = $registry->is_registered( $args[0] );
284284

285285
if ( $block_type ) {
286286
WP_CLI::success( "Block type '{$args[0]}' is registered." );

0 commit comments

Comments
 (0)