From 60ce32f57e439619cbed3bf5d959fabfec3c4d76 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Jul 2026 16:11:43 +0800 Subject: [PATCH] fix(forum): drop legacy draft service require_once PSR-4 already loads DraftService; require class-aksrt-forum-draft-service.php fatals on compose. --- src/AKSRT/Forum/Forum.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/AKSRT/Forum/Forum.php b/src/AKSRT/Forum/Forum.php index ce18f260..9f07fa09 100644 --- a/src/AKSRT/Forum/Forum.php +++ b/src/AKSRT/Forum/Forum.php @@ -88,10 +88,6 @@ class Forum { private function draft_service(): DraftService { if (!$this->draft_svc) { - // Draft service is loaded by bootstrap before this class. - if (!class_exists('AKSRT\\Forum\\DraftService', false)) { - require_once __DIR__ . '/class-aksrt-forum-draft-service.php'; - } $this->draft_svc = new DraftService($this); } return $this->draft_svc;