修复aksrt_render_profile_empty() 定义
This commit is contained in:
1 parent
bb9a410ad6
commit
176a7d3091
1 file changed
+5
@@ -202,6 +202,11 @@ if (!function_exists('aksrt_capture_user_home_panel')) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 面板 body 依赖的空态/分页助手位于模板侧共享文件,REST 片段上下文不会自动加载。
|
||||||
|
if (!function_exists('aksrt_render_profile_empty')) {
|
||||||
|
require_once AKSRT_DIR . '/templates/parts/user-shared-helpers.php';
|
||||||
|
}
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
load_template($template, false, $ctx);
|
load_template($template, false, $ctx);
|
||||||
return (string) ob_get_clean();
|
return (string) ob_get_clean();
|
||||||
|
|||||||
Reference in new issue
Block a user