Managedpromptadmin - Source Excerpt 10
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/plugins/spiralist-workspace/includes/Admin/ManagedPromptAdmin.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/plugins/spiralist-workspace/includes/Admin/ManagedPromptAdmin.php
'details' => array_values(array_filter(array_map('strval', (array) ($notice['details'] ?? [])))),
];
}
/**
* Syncs filesystem prompts back into the database registry.
*/
private function sync_prompts(): void
{
$this->system_prompts->sync();
}
/**
* Redirects back to the Workspace admin screen.
*
* @param array<string,string> $args
*/
private function redirect_to_admin(array $args = []): void
{
$query_args = array_filter(
array_merge(
[
'page' => 'spiralist-workspace',
],
$args
),
static fn($value): bool => is_scalar($value) && (string) $value !== ''
);
wp_safe_redirect(add_query_arg($query_args, admin_url('admin.php')));
exit;
}
}