Skip to content

fix: load AI referrals after its class is included - #101

Merged
cport1 merged 1 commit into
mainfrom
fix/ai-referrals-load-order
Sep 26, 2026
Merged

cport1 merged 1 commit into
mainfrom
fix/ai-referrals-load-order

Conversation

@cport1

@cport1 cport1 commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

2.10.0 called WebDecoy_AI_Referrals::register() from init_hooks(), which runs
when webdecoy.php is included. The class is required later, by load_includes()
on plugins_loaded, so every request failed with a Class not found fatal.
Registration now runs on plugins_loaded at priority 20.

BootOrderTest reads webdecoy.php and fails if the constructor path calls any
class that load_includes() loads.

2.10.0 called WebDecoy_AI_Referrals::register() from init_hooks(), which runs
when webdecoy.php is included. The class is required later, by load_includes()
on plugins_loaded, so every request failed with a Class not found fatal.
Registration now runs on plugins_loaded at priority 20.

BootOrderTest reads webdecoy.php and fails if the constructor path calls any
class that load_includes() loads.
@cport1
cport1 merged commit b9142df into main Sep 26, 2026
4 checks passed
@cport1
cport1 deleted the fix/ai-referrals-load-order branch September 26, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant