用户中心减层:收敛本人入口与 panel 契约
This commit is contained in:
1 parent
31c95c3bc6
commit
dec33ea15a
33 files changed
+1585
-1488
No files matched your search
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Profile Comment List Item — image-less comment row for user center.
|
||||
*
|
||||
* 通过 set_query_var() 接收:
|
||||
* 通过 get_template_part() 的 $args 接收(保留 query var 兼容):
|
||||
* - aksrt_profile_comment: WP_Comment 对象
|
||||
*
|
||||
* @package AKSRT
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$comment = get_query_var('aksrt_profile_comment');
|
||||
$comment = $args['comment'] ?? get_query_var('aksrt_profile_comment');
|
||||
if (!$comment instanceof WP_Comment) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user