media_handle_sideload() is only available in admin context. When the pipeline runs via WP-Cron (background generation), the function is undefined. Add require_once guards for media.php, file.php, and image.php before calling sideload. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>