[wp-hackers] 1.5.1: Important Bugs

Owen Winkler ringmaster at midnightcircus.com
Thu Mar 31 18:46:24 GMT 2005


Robert Deaton wrote:
> According to the codex [1], If you supply a function to
> add_submenu_page, that function would be called to display the content
> and the plugin file would not be included for its page. From what I
> can see after the past two hours of headaches surfing the source code,
> the function is not called, and rather a hook is created with the
> function name supplied. Not only that, but even if a function is
> supplied, it still tries to include the page, because somewhere in the
> get_plugin_page_hookname and get_plugin_page_hook there is a bug that
> results in the hook not being returned, and thus the conditional on
> line 46 of admin.php fails, which causes the file to be included.
> Someone please, help out on this, its killing me.

Upgrade to a recent SVN revision of 1.5.1.

The documentation on Codex should be accurate with this fix applied:
http://mosquito.wordpress.org/view.php?id=902

See the changed paragraph in Codex:
http://codex.wordpress.org/index.php?title=Adding_Administration_Menus&diff=0&oldid=9603

Owen



More information about the wp-hackers mailing list