Merge pull request 'fix(forum): drop legacy draft service require_once' (#202) from fix/forum-draft-autoload into main
Reviewed-on: CYL/wordpress-theme-aksrt#202
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user