Skip to content

Commit

Permalink
Seedlet: Fix a fatal error in Gutenberg (#7940)
Browse files Browse the repository at this point in the history
4bf4fb9 introduced a bug when including `wpcom-colors.php` by using the
editor. It was missing a directory separate and so  it fataled with an
error message like:
`PHP Fatal error:  Uncaught Error: Failed opening required '/xxx/seedlet/incwpcom-colors.php' (include_path='.') in /xxx/seedlet/inc/wpcom-editor-colors.php:3
  • Loading branch information
dsas committed Jul 8, 2024
1 parent d8b3f8a commit 2bcca3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seedlet/inc/wpcom-editor-colors.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
require_once __DIR__ . 'wpcom-colors.php';
require_once __DIR__ . '/wpcom-colors.php';

0 comments on commit 2bcca3f

Please sign in to comment.