#10008 closed defect (bug) (wontfix)
var pagenow in js not supporting plugins !
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | high | |
| Severity: | normal | Version: | 2.8 |
| Component: | Administration | Keywords: | has-patch reporter-feedback |
| Focuses: | Cc: |
Description
javascript generated in the admin header do not support plugins
so modifiying this line
var pagenow = '<?php echo substr($pagenow, 0, -4); ?>';
into this
var pagenow = '<?php echo (isset($plugin_page)) ? $plugin_page : substr($pagenow, 0, -4); ?>';
Attachments (1)
Change History (13)
#2
in reply to:
↑ 1
;
follow-up:
↓ 3
@
17 years ago
- Keywords tested added; needs-testing removed
Replying to Denis-de-Bernardy:
shouldn't this be substr($page_hook, 0, -4), rather?
No, in wp, pagenow is deducted from the php file name (admin.php, post.php etc ...)
in plugins, plugin pages have no relation with any php file (admin.php?page=toto ...)
#3
in reply to:
↑ 2
@
17 years ago
Replying to arena:
Replying to Denis-de-Bernardy:
shouldn't this be substr($page_hook, 0, -4), rather?
No, in wp, pagenow is deducted from the php file name (admin.php, post.php etc ...)
in plugins, plugin pages have no relation with any php file (admin.php?page=toto ...)
btw, plugin_page is more stable than page_hook, page_hook value changes whether the option is at the top of a plugin menu or not !
#6
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
2.8.2 regression
[11508] has been discarded !!!
see ticket text !