Tags: WPDevelopers/embedpress
Tags
Use an install-type marker to detect fresh installs reliably The previous fix compared live options at activation time, but by then EmbedpressSettings::__construct has already written default settings, so every site looks "non-empty" — including fresh installs. That meant no one was ever redirected to the setup wizard. Set an 'embedpress_install_type' marker at the top of the constructor, before any default writes. If 'embedpress_elements_updated' or any saved settings/elements exist, this is an existing user — mark it 'existing'. Otherwise mark it 'fresh'. The activation callback reads this marker to decide whether to trigger the redirect. Also clear any stuck need_first_time_redirect flag for existing users so they aren't dropped into the wizard after updating from a version with the earlier buggy migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PreviousNext