Commit 50b333e
committed
Connectors: Fix AI plugin settings page link to use the correct
The "Control features in the AI plugin" button on the Options → Connectors
screen was linking to `options-general.php?page=ai`, which triggers a
"you do not have sufficient permissions" error because the AI plugin now
registers its settings page under the slug `ai-wp-admin`.
The `AI_PLUGIN_SLUG` constant is still needed as-is for the plugin install
call (`saveEntityRecord( 'root', 'plugin', { slug: AI_PLUGIN_SLUG, ... } )`),
which must use the wp.org plugin directory slug `ai`. A separate constant,
`AI_PLUGIN_PAGE_SLUG`, is introduced for the admin settings page slug and
used only at the settings link use-site.
Variable naming matches the upstream Gutenberg source-of-truth PR
(WordPress/gutenberg#77336), so these built-file changes line up with what
core will receive via the next Gutenberg sync.
Props dkotter, JeffPaul, nimeshatxecurify, ocean90.
Fixes #65073.
Made-with: Cursorai-wp-admin slug.1 parent 67094ee commit 50b333e
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
| 1352 | + | |
1352 | 1353 | | |
1353 | 1354 | | |
1354 | 1355 | | |
| |||
1527 | 1528 | | |
1528 | 1529 | | |
1529 | 1530 | | |
1530 | | - | |
| 1531 | + | |
1531 | 1532 | | |
1532 | 1533 | | |
1533 | 1534 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments