#3835 closed defect (bug) (wontfix)
plugin page hooks and actions confusion
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | 2.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
admin_head.php
relies on the existence of the variable $page_hook
to determine the name of the action to execute; however, $page_hook
is always set in admin.php
, causing admin_head.php
to ignore actions like admin_head-my_plugin/page.php
.
the attached patch contains one of the solutions; the other one is to unset($page_hook)
in admin.php
if empty
it would also be interesting to know why we have 2 action naming schemes, one like admin_head-some/file.php
and another one like admin_head-management_page_file
(i'm not sure it isn't a feature ;)
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
plugin page is the old scheme. page hook is the new one. plugin page is only around for back compat.