Skip to content

Connectors: Change URL to options-connectors.php#11157

Closed
jorgefilipecosta wants to merge 2 commits intoWordPress:trunkfrom
youknowriad:update/connectors-url-options-connectors
Closed

Connectors: Change URL to options-connectors.php#11157
jorgefilipecosta wants to merge 2 commits intoWordPress:trunkfrom
youknowriad:update/connectors-url-options-connectors

Conversation

@jorgefilipecosta
Copy link
Member

@jorgefilipecosta jorgefilipecosta commented Mar 4, 2026

Trac ticket: https://core.trac.wordpress.org/ticket/64730

Follow-up for #11056.
Synced from WordPress/gutenberg#76142.

Ticket: https://core.trac.wordpress.org/ticket/64790

Summary

Changes the Connectors screen URL from a query parameter page to a direct file, following the Settings menu naming convention used by other settings pages (options-general.php, options-writing.php, etc.).

Before: /wp-admin/admin.php?page=connectors-wp-admin
After: /wp-admin/options-connectors.php

Changes

  • Add src/wp-admin/options-connectors.php direct admin file
  • Add submenu entry in menu.php at position 1 (after General)
  • Update script_module_data filter to options-connectors-wp-admin

Test plan

  • Navigate to Settings > Connectors
  • Verify URL is options-connectors.php
  • Verify connector cards appear (Anthropic, Google, OpenAI)
  • Verify API key management works correctly

Changes the Connectors screen URL from a query parameter page to a direct
file, following the Settings menu naming convention (options-general.php,
options-writing.php, etc.).

- Add src/wp-admin/options-connectors.php direct admin file
- Add submenu entry in menu.php at position 1
- Update script_module_data filter to options-connectors-wp-admin

Props jeremyfelt, flavor13.
See #64730.
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props jorgefilipecosta.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

package.json Outdated
},
"gutenberg": {
"ref": "022d8dd3d461f91b15c1f0410649d3ebb027207f"
"ref": "95ecd95bc36c3e794be28250c10f4247761905c8"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary ref change needs to be updated when WordPress/gutenberg#76142 is merged and backported to the release branch.

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests well, and the proposed code changes look good.

pento pushed a commit that referenced this pull request Mar 4, 2026
Changes the Connectors screen URL from a query parameter page to a direct file, following the Settings menu naming convention used by other settings pages (`options-general.php`, `options-writing.php`, etc.).

* Adds `src/wp-admin/options-connectors.php` as a direct admin screen file.
* Adds a static submenu entry in `menu.php` at position 12 (after General).
* Removes `_wp_connectors_add_settings_menu_item()` and its `admin_menu` hook from `connectors.php`.
* Updates the `script_module_data` filter from `connectors-wp-admin` to `options-connectors-wp-admin`.

Synced from WordPress/gutenberg#76142.
Developed in #11157.

Follow-up to [61749], [61824].
See #64730.

Props jorgefilipecosta, gziolo.
Fixes #64790.



git-svn-id: https://develop.svn.wordpress.org/trunk@61825 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 61825
GitHub commit: 707fa78

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions bot closed this Mar 4, 2026
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Mar 4, 2026
Changes the Connectors screen URL from a query parameter page to a direct file, following the Settings menu naming convention used by other settings pages (`options-general.php`, `options-writing.php`, etc.).

* Adds `src/wp-admin/options-connectors.php` as a direct admin screen file.
* Adds a static submenu entry in `menu.php` at position 12 (after General).
* Removes `_wp_connectors_add_settings_menu_item()` and its `admin_menu` hook from `connectors.php`.
* Updates the `script_module_data` filter from `connectors-wp-admin` to `options-connectors-wp-admin`.

Synced from WordPress/gutenberg#76142.
Developed in WordPress/wordpress-develop#11157.

Follow-up to [61749], [61824].
See #64730.

Props jorgefilipecosta, gziolo.
Fixes #64790.


Built from https://develop.svn.wordpress.org/trunk@61825


git-svn-id: http://core.svn.wordpress.org/trunk@61112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants