Plugin option pages aren't displayed. http://mosquito.wordpress.org/view.php?id=902
git-svn-id: https://develop.svn.wordpress.org/trunk@2362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0f15eb8785
commit
9dc9b14994
@ -40,8 +40,8 @@ else if (isset($submenu_file) && $submenu_file == substr($item[2], -10)) $class
|
|||||||
else $class = '';
|
else $class = '';
|
||||||
|
|
||||||
if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) {
|
if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}")) {
|
||||||
$page_hook = get_plugin_page_hook($item[2], $parent_file);
|
$menu_hook = get_plugin_page_hook($item[2], $parent_file);
|
||||||
if ( $page_hook )
|
if ( $menu_hook )
|
||||||
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>";
|
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>";
|
||||||
else
|
else
|
||||||
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
|
echo "\n\t<li><a href='" . get_settings('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
|
||||||
|
Loading…
Reference in New Issue
Block a user