#9146 closed defect (bug) (fixed)
Admin Page Title Missing for Plugin Without Submenus
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.8 |
Component: | Menus | Keywords: | has-patch |
Focuses: | Cc: |
Description
If you create a plugin that has nothing but a menu page, but no submenus, the title of the admin page is missing. This is a problem for a simple plugin that needs only one page of options, but those options are unrelated to Wordpress and therefore don't fit in the standard WP menus of "Appearance", "Settings", "Tools", etc.
Attached to this ticket is a simple plugin that demonstrates the problem.
Attachments (2)
Change History (13)
#1
@
16 years ago
Attached is a patch for wp-admin/includes/plugin.php that presents a simple fix to this bug. The resolution is simply, if the entire process is followed, and no title is still found, use the menu page's title.
#4
@
16 years ago
Usage of __FILE is deprecated. It will lead to misery. Try an arbitrary ID string.
#5
follow-up:
↓ 7
@
16 years ago
The title being talked about here is the HTML <title>. Confirmed that this is a problem, even when not using __FILE__
and that the patch fixes it.
#7
in reply to:
↑ 5
@
16 years ago
Replying to josephscott:
The title being talked about here is the HTML <title>. Confirmed that this is a problem, even when not using
__FILE__
and that the patch fixes it.
Right, I was just using an arbitrary string... I just happened to pick "FILE" as a demo of the problem. My bad.
Plugin that demonstrates the missing admin title problem