[wp-trac] [WordPress Trac] #32422: add_menu_page() returns incorrect $hookname when using plugin filename as $menu_slug
WordPress Trac
noreply at wordpress.org
Fri Jan 30 05:22:14 UTC 2026
#32422: add_menu_page() returns incorrect $hookname when using plugin filename as
$menu_slug
-------------------------------------------------+-------------------------
Reporter: quinncom | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Plugins | Version: 4.2.2
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback 2nd- | Focuses:
opinion | administration
-------------------------------------------------+-------------------------
Changes (by huzaifaalmesbah):
* keywords: has-patch needs-testing reporter-feedback => has-patch
reporter-feedback 2nd-opinion
Comment:
I attempted to test the attached patch using:
{{{
npm run grunt patch:32422
}}}
During patching, the following message appeared:
{{{
Reversed (or previously applied) patch detected! Assume -R? [y]
}}}
This usually indicates that the patch may have already been applied,
partially applied via another ticket, or that the patch is too outdated to
apply cleanly against current `trunk`.
This is a very old ticket and core has changed significantly since the
patch was created. It is also possible that the original issue has been
addressed elsewhere over time.
Because of this:
* Removing `needs-testing`
* Keeping `reporter-feedback` to confirm whether the issue still exists
in current WordPress
* Adding `2nd-opinion` due to uncertainty whether the issue is still
reproducible or already solved indirectly
A confirmation that the issue still exists in current `trunk` would help
move this ticket forward.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32422#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list