Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix code that causes PHP 8.1 deprecation in BlockTypesController (#5287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konamiman authored Dec 1, 2021
1 parent 08d4575 commit bf282a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function register_blocks() {
*/
public function add_data_attributes( $content, $block ) {
$block_name = $block['blockName'];
$block_namespace = strtok( $block_name, '/' );
$block_namespace = strtok( $block_name ?? '', '/' );

/**
* Filters the list of allowed block namespaces.
Expand Down

0 comments on commit bf282a5

Please sign in to comment.