Skip to content

Commit c031d69

Browse files
Corrects AI plugin admin slug
Ensures the correct slug (`ai-wp-admin`) is used for the AI plugin's administration page link. This addresses potential conflicts or misdirection by distinguishing the admin page from the main plugin slug. Fixes #65077
1 parent 5044e95 commit c031d69

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/wp-includes/build/routes/connectors-home/content.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ function WpLogoDecoration() {
13491349

13501350
// routes/connectors-home/ai-plugin-callout.tsx
13511351
var AI_PLUGIN_SLUG = "ai";
1352+
var AI_PLUGIN_ADMIN_SLUG = "ai-wp-admin";
13521353
var AI_PLUGIN_ID = "ai/ai";
13531354
var AI_PLUGIN_URL = "https://wordpress.org/plugins/ai/";
13541355
var connectorDataValues = Object.values(getConnectorData());
@@ -1527,7 +1528,7 @@ function AiPluginCallout() {
15271528
variant: "secondary",
15281529
size: "compact",
15291530
href: (0, import_url.addQueryArgs)("options-general.php", {
1530-
page: AI_PLUGIN_SLUG
1531+
page: AI_PLUGIN_ADMIN_SLUG
15311532
})
15321533
},
15331534
(0, import_i18n3.__)("Control features in the AI plugin")

src/wp-includes/build/routes/connectors-home/content.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)