Skip to content

Commit

Permalink
Fix rebasing error
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z committed Sep 7, 2023
1 parent d86c784 commit b058f18
Show file tree
Hide file tree
Showing 2 changed files with 5,776 additions and 4,869 deletions.
2 changes: 1 addition & 1 deletion projects/packages/blocks/src/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function () use ( $feature_name, $method_name ) {
public static function get_block_metadata_from_file( $filename ) {
$metadata = array();
$needle = '/block.json';
$filename = $needle === substr( $filename, -strlen( $needle ) ) ? $filename : realpath( $filename . $needle );
$filename = $needle === substr( $filename, -strlen( $needle ) ) ? $filename : $filename . $needle;

if ( file_exists( $filename ) ) {
try {
Expand Down
Loading

0 comments on commit b058f18

Please sign in to comment.