Skip to content

Experiment toggles are cleared after “Disable AI” is saved #352

@turtlepod

Description

@turtlepod

Description

Saving settings while AI is globally disabled clears each experiment’s stored wpai_feature_{id}_enabled option. After Enable AI, every experiment appears off until the admin re-checks them, even though they had been enabled before.

Step-by-step reproduction instructions

  1. Go to Settings → AI (with valid AI connectors).
  2. Turn AI on and enable one or more experiments (e.g. Title Generation).
  3. Click Save Changes and confirm success.
  4. Click Disable AI (auto-submit).
  5. Click Enable AI again.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress | 7.1-alpha-62171 (wp core version + wp-includes/version.php)
AI plugin | 0.6.0 (plugin header in wp-content/plugins/ai/ai.php)
PHP (CLI) |  


Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

[Type] BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions