[wp-hackers] Page Title for Admin Menu

Chris Williams chris at clwill.com
Fri Feb 13 16:13:20 GMT 2009


Exactly, so is that a bug?  Is it impossible/illegal to have a plug-in with
only a top level menu?


> From: Gaarai <gaarai at gaarai.com>
> Reply-To: <wp-hackers at lists.automattic.com>
> Date: Thu, 12 Feb 2009 21:21:02 -0600
> To: <wp-hackers at lists.automattic.com>
> Subject: Re: [wp-hackers] Page Title for Admin Menu
> 
> In my experience, it isn't the top-level menu that sets the title;
> rather, the first sub-menu under it does.
> 
> Chris Jean
> http://gaarai.com/
> http://wp-roadmap.com/
> 
> 
> 
> Chris Williams wrote:
>> Despite my overabundant use of the word "really" (which I "really" regret
>> now :) ), does anybody have any input on this issue?
>> 
>> 
>>   
>>> From: Chris Williams <chris at clwill.com>
>>> Reply-To: <wp-hackers at lists.automattic.com>
>>> Date: Wed, 11 Feb 2009 13:27:16 -0800
>>> To: <wp-hackers at lists.automattic.com>
>>> Subject: [wp-hackers] Page Title for Admin Menu
>>> 
>>> I am writing a plugin that adds an admin menu page (not submenu).  It does
>>> this because it¹s really quite a separate thing < a calendar of racing
>>> events, nothing to do with the WP functions, it¹s really a separate data
>>> table and everything.  So, it doesn¹t really belong down in ³settings², or
>>> ³tools².
>>> 
>>> This is all good, I have it working with add_menu_page and all is fine.  It
>>> really only needs one page (like the ³Links² or ³Comments² menu items), it¹s
>>> just an ³edit events² page.  There is one small problem, and that¹s that the
>>> HTML page title is null.  It says simply ³[blogname] > -- Wordpress².
>>> Nothing I put in the $page_title parameter on add_menu_page works.
>>> 
>>> If I have a submenu page, it works, but not with just a plain add_menu_page.
>>> I believe the issue is in get_admin_page_title in
>>> wp-admin/includes/plugin.php, but I haven¹t debugged it completely.
>>> 
>>> My questions are: 1) am I doing something incorrectly that is causing this,
>>> 2) is this a known issue and I should just chill, or 3) should I figure it
>>> out and propose a patch?
>>> 
>>> Thanks,
>>> Chris
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>     
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
>>   
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list