diff --git a/src/wp-includes/class-wp-block-type.php b/src/wp-includes/class-wp-block-type.php index 452c8e2923889..0b09d3aa98943 100644 --- a/src/wp-includes/class-wp-block-type.php +++ b/src/wp-includes/class-wp-block-type.php @@ -304,6 +304,10 @@ public function __get( $name ) { } $new_name = $name . '_handles'; + + if ( count( $this->{$new_name} ) > 1 ) { + return $this->{$new_name}; + } return isset( $this->{$new_name}[0] ) ? $this->{$new_name}[0] : null; }