Skip to content

Commit

Permalink
Fixed: autoload error if file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-grenier committed Dec 7, 2024
1 parent 97ca348 commit e191289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ function studio_scripts()


// == Load autoload.php for dependencies
require_once get_template_directory() . '/vendor/autoload.php';
if (file_exists(get_template_directory() . '/vendor/autoload.php')) {
require_once get_template_directory() . '/vendor/autoload.php';
}


// == Allow Gutenberg editor on posts but not on pages, only if ACF page template is selected
Expand Down

0 comments on commit e191289

Please sign in to comment.