refactor(admin): remove content-type resource/post module option

This commit is contained in:
kate522 committed 2026-07-13 23:59:32 +08:00
1 parent 1af0e9b753
commit fb1a4e110c
6 files changed
+22 -100

No files matched your search

-13
View File
@@ -443,19 +443,6 @@ if (!function_exists('aksrt_is_resource_archive')) {
}
}
/**
* Normalize homepage-module content scope.
* Values: post | resource (resource = posts marked _aksrt_is_resource).
*/
if (!function_exists('aksrt_normalize_content_scope')) {
function aksrt_normalize_content_scope($scope): string {
$scope = sanitize_key((string) $scope);
if ($scope === 'resource') {
return 'resource';
}
return 'post';
}
}
if (!function_exists('aksrt_detect_cloud_service')) {
/**