fix(ns): root-qualify WP_* classes after PSR-4 move
Bare WP_REST_Server etc. resolve under AKSRT\* namespaces; prefix with \ for Balance REST and other type hints / constructors.
This commit is contained in:
1 parent
d3107a449b
commit
1e21911b03
9 files changed
+27
-27
No files matched your search
@@ -130,7 +130,7 @@ trait ModerationPart1 {
|
||||
}
|
||||
}
|
||||
|
||||
private function resolve_result_from_runtime_or_default(array $commentdata, WP_Comment $comment): array {
|
||||
private function resolve_result_from_runtime_or_default(array $commentdata, \WP_Comment $comment): array {
|
||||
$fp_data = $this->comment_fingerprint($commentdata);
|
||||
if ($fp_data !== '' && isset($this->moderation_result_map[$fp_data])) {
|
||||
return $this->moderation_result_map[$fp_data];
|
||||
|
||||
Reference in new issue
Block a user