[wp-trac] [WordPress Trac] #65081: AI Plugin “Control features” button redirects to unauthorized access page
WordPress Trac
noreply at wordpress.org
Thu Apr 16 18:25:45 UTC 2026
#65081: AI Plugin “Control features” button redirects to unauthorized access page
----------------------------+-------------------------------------------
Reporter: codex007 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords: needs-testing has-screenshots
Focuses: ui, javascript |
----------------------------+-------------------------------------------
While using the AI plugin in the WordPress admin panel, clicking the
“Control features in the AI plugin” button on the connector screen
redirects to a page that shows:
{{{
Sorry, you are not allowed to access this page.
}}}
However, accessing the correct admin page directly works without any
issue.
== Steps to Reproduce ==
1. Navigate to Settings → Connectors
2. Click on “Control features in the AI plugin”
3. Install and activate the AI plugin (if not already
installed)
4. After installation, the button becomes visible
5. Click the button → it redirects to:
/wp-admin/options-general.php?page=ai
6. The following error appears:
{{{
Sorry, you are not allowed to access this page.
}}}
== Expected Results ==
The button should redirect to:
/wp-admin/options-general.php?page=ai-wp-admin
where the user has proper access.
== Actual Results ==
The button redirects to:
/wp-admin/options-general.php?page=ai
which results in an unauthorized access error.
== Environment ==
• WordPress Version: 7.0
• Environment: Localhost
• Plugin: AI Plugin (default WP AI feature)
• User Role: Administrator
== Additional Notes ==
• Direct access to ai-wp-admin works correctly
• Issue likely caused by incorrect menu slug or capability
mismatch in the button URL
• Possibly needs update in plugin routing or admin menu
registration
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65081>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list