File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed
Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88Prefix the change with one of these keywords:
99
10- - _ Added_ : for new features.
11- - _ Breaking_ : for higher visibility of breaking changes
12- - _ Changed_ : for changes in existing functionality.
13- - _ Deprecated_ : for soon-to-be removed features.
14- - _ Removed_ : for now removed features.
15- - _ Fixed_ : for any bug fixes.
16- - _ Security_ : in case of vulnerabilities.
10+ - _ Added_ : for new features.
11+ - _ Breaking_ : for higher visibility of breaking changes
12+ - _ Changed_ : for changes in existing functionality.
13+ - _ Deprecated_ : for soon-to-be removed features.
14+ - _ Removed_ : for now removed features.
15+ - _ Fixed_ : for any bug fixes.
16+ - _ Security_ : in case of vulnerabilities.
1717
1818## [ Unreleased]
1919
20- - _ Fixed_ : Missing wp-env script and some documentation changes.
20+ - _ Fixed_ : Check for autoload.php before requiring it.
21+ - _ Fixed_ : Missing wp-env script and some documentation changes.
Original file line number Diff line number Diff line change 2222define ( 'MULTI_BLOCK_STARTER_URL ' , plugin_dir_url ( __FILE__ ) );
2323
2424// Include Composer's autoload file.
25- require_once plugin_dir_path ( __FILE__ ) . 'vendor/autoload.php ' ;
26-
25+ if ( file_exists ( plugin_dir_path ( __FILE__ ) . 'vendor/autoload.php ' ) ) {
26+ require_once plugin_dir_path ( __FILE__ ) . 'vendor/autoload.php ' ;
27+ } else {
28+ wp_trigger_error ( ' Multi Block Starter Plugin: Composer autoload file not found. Please run `composer install` to install the dependencies. ' , E_USER_ERROR );
29+ return ;
30+ }
2731// Instantiate the classes.
2832$ multi_block_starter_classes = array (
2933 \Multi_Block_Starter \Enqueues::class,
You can’t perform that action at this time.
0 commit comments