diff --git a/wp-admin/themes.php b/wp-admin/themes.php
index 757d4bb96e..4807336269 100644
--- a/wp-admin/themes.php
+++ b/wp-admin/themes.php
@@ -174,7 +174,10 @@ $customize_title = sprintf( __( 'Customize “%s”' ), $ct->display('Na
else
$options[] = "{$item[0]}";
} else if ( current_user_can($item[1]) ) {
- if ( file_exists(ABSPATH . 'wp-admin/' . $item[2]) ) {
+ $menu_file = $item[2];
+ if ( false !== ( $pos = strpos( $menu_file, '?' ) ) )
+ $menu_file = substr( $menu_file, 0, $pos );
+ if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) {
$options[] = "{$item[0]}";
} else {
$options[] = "{$item[0]}";