Use WP_PLUGIN_DIR, not PLUGINDIR. props ocean90, fixes #18772.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-09-25 19:24:15 +00:00
parent ce992634cc
commit b9bd6e3632

View File

@ -103,7 +103,7 @@ if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
if ( !empty($submenu[$item[2]]) ) {
$submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index.
$menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]);
if ( file_exists(ABSPATH . PLUGINDIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))
if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))
$options[] = "<a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";
else
$options[] = "<a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";