[wp-hackers] Change in plugin Options page handling
Ryan Boren
ryan at boren.nu
Fri Feb 25 05:04:57 GMT 2005
On Fri, 2005-02-25 at 13:56 +0900, Jamie Talbot wrote:
>Ryan Boren wrote:
>| 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.
>
>I had a problem using the sample plugin after patching a local WinXP
>install running latest CVS. The __FILE__ var seemed to include the
>entire path to the plugin, causing Invalid Plugin Page errors and Object
>Not Found errors...
add_*_page() run __FILE__ through plugin_basename() to strip off the
extra stuff.
You mention latest CVS. The patch is against latest SVN. That could be
a problem.
Ryan
More information about the hackers
mailing list