diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 146fdabbaa..51bc9a192a 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -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[] = "{$item[0]}"; else $options[] = "{$item[0]}";