From b9bd6e363218ee2f120f7d917eb11198b234a8bf Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 25 Sep 2011 19:24:15 +0000 Subject: [PATCH] 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 --- wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 146fdabba..51bc9a192 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]}";