plugin_page fix from Owen.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-12-22 03:06:04 +00:00
parent e2e74cf4b9
commit 17707c8a55
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ require(ABSPATH . '/wp-admin/menu.php');
// Handle plugin admin pages. // Handle plugin admin pages.
if (isset($_GET['page'])) { if (isset($_GET['page'])) {
$plugin_page = stripslashes($_GET['page']); $plugin_page = stripslashes($_GET['page']);
$plugin_page = plugin_basename($_GET['page']); $plugin_page = plugin_basename($plugin_page);
$page_hook = get_plugin_page_hook($plugin_page, $pagenow); $page_hook = get_plugin_page_hook($plugin_page, $pagenow);
if ( $page_hook ) { if ( $page_hook ) {