[wp-trac] [WordPress Trac] #32940: Add IDs to Admin Hyperlinks
WordPress Trac
noreply at wordpress.org
Tue Jan 20 10:26:46 UTC 2026
#32940: Add IDs to Admin Hyperlinks
-------------------------------------------------+-------------------------
Reporter: charlestonsw | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Administration | Version: 4.3
Severity: normal | Resolution:
Keywords: has-patch dev-feedback 2nd-opinion | Focuses:
needs-refresh |
-------------------------------------------------+-------------------------
Changes (by huzaifaalmesbah):
* keywords: has-patch needs-testing dev-feedback 2nd-opinion => has-patch
dev-feedback 2nd-opinion needs-refresh
Comment:
== Test Report
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/32940/32940.diff
=== Steps to Reproduce / Test
1. Log in to the WordPress admin dashboard.
2. Navigate to **Pages → Add New**.
3. Open browser developer tools and inspect the **admin menu** markup.
4. Locate the submenu `<a>` element for **Add New**.
5. Check whether the link contains a stable `id` attribute.
=== Expected Results
* Admin menu links should have stable, language-independent id attributes.
* IDs should be based on internal menu slugs, not translated labels.
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 143.0.0.0
- OS: macOS
- Theme: Twenty Twenty-One 2.7
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.1
=== Actual Results
❌ The patch does not work with the current WordPress version.
The patch is outdated and incompatible with current WordPress core. A
refreshed patch is required using menu slugs to ensure stable selectors
for UI testing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32940#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list