PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/modules.php +5 -1 23.0.1 → trunk View file →
@@ -20,9 +20,13 @@
20 20 }
21 21 $already_registered = true;
22 22
23 23 // Load build constants
24 - $build_constants = require __DIR__ . '/constants.php';
24 + $constants_file = __DIR__ . '/constants.php';
25 + if ( ! file_exists( $constants_file ) ) {
26 + return;
27 + }
28 + $build_constants = require $constants_file;
25 29 $modules_dir = __DIR__ . '/modules';
26 30 $modules_file = $modules_dir . '/registry.php';
27 31
28 32 if ( ! file_exists( $modules_file ) ) {