Skip to content

Commit

Permalink
Load main plugin libraries on plugins_loaded.
Browse files Browse the repository at this point in the history
Loading immediately when the main plugin file is loaded can cause
race conditions when loading internal libraries conditionally on
other plugins, such as webwork-problem-embed.
  • Loading branch information
boonebgorges committed Feb 12, 2024
1 parent c3c0c88 commit 309c815
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openlab-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ function () {
}
);

App::init();
add_action(
'plugins_loaded',
function () {
App::init();
}
);

0 comments on commit 309c815

Please sign in to comment.