[wp-hackers] ID attributes for admin menu items
Leonid Mamchenkov
leonid at mamchenkov.net
Sat Jul 28 11:56:21 GMT 2007
Hi,
On 7/25/07, Matt Mullenweg <m at mullenweg.com> wrote:
> Leonid Mamchenkov wrote:
> > I think it would be nice to have a unique ID set on each menu item, so
> > that a style could be attached to it. The ID can be dynamically
> > generated from the item title or something like that.
>
> I'm fine with that, but it'd need to be done in a way that translation
> doesn't mess it up.
Is sanitize_title() translation friendly? Attached is a simple patch
for wp-admin/menu-header.php (against trunk r5820) which generates
ID's like 'adminmenu_dashboard' and 'submenu_posts'.
Any problems with this approach? It seem to work for me.
--
Leonid Mamchenkov
More information about the wp-hackers
mailing list