[wp-hackers] Change in plugin Options page handling

Ryan Boren ryan at boren.nu
Fri Feb 25 04:44:36 GMT 2005


I think I have everything fixed.  Attached is a diff against current SVN
and a sample plugin.  The trick when adding a toplevel menu and a
submenu via the same plugin is to use __FILE__ for the toplevel menu and
a made up name for the submenu.

The sample plugin adds an options menu, a management menu, a submenu to
Dashboard, a top level menu, and a submenu below that toplevel -- all in
a single file plugin.

I tested it with older plugins that didn't use callbacks and all seems
to be well.

Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu_fix.diff
Type: text/x-patch
Size: 3627 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/hackers/attachments/20050225/1bcb05a6/menu_fix.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menu-test.php
Type: application/x-php
Size: 1006 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/hackers/attachments/20050225/1bcb05a6/menu-test.bin


More information about the hackers mailing list