fix(ns): class_exists() must use FQCN after PSR-4
Bare class_exists('Balance') looks up global Balance, always false
under AKSRT\* namespaces → REST 403 on balance exchange and friends.
Rewrite string checks to AKSRT\{Domain}\{Class}.
This commit is contained in:
1 parent
d55d1c6b62
commit
68d2e78d77
40 files changed
+105
-105
No files matched your search
@@ -275,7 +275,7 @@ trait FacadeBulk {
|
||||
*/
|
||||
public static function get_post_page_settings(): array {
|
||||
// Canonical assembly lives in the post-display helper (related style/source split, aliases).
|
||||
if (class_exists('PostDisplay')) {
|
||||
if (class_exists('AKSRT\\Settings\\PostDisplay')) {
|
||||
return PostDisplay::get_post_page_settings();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user