Index: wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
===================================================================
--- wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php	(revision 3678)
+++ wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php	(working copy)
@@ -145,20 +145,12 @@
 		// WordPress.org runs trunk, this keeps the highest version selectable as trunk
 		$versions[5] = preg_replace( '!-\d{4,}$!', '', $wp_version );
 
-		$found = false;
-		foreach( $versions as $version ) {
-			if ( isset( $all_versions[ $version ] ) && in_array( $tested_up_to, $all_versions[ $version ] ) ) {
-				$tested_up_to = $version;
-				$found = true;
-				break;
-			}
-		}
 		// If the version specified isn't going to display, insert it into the list.
-		if ( ! $found ) {
-			$versions[4] = $tested_up_to;
-			ksort( $versions );
-		}
-
+                if ( ! in_array( $tested_up_to, $versions ) ) {
+                    $versions[4] = $tested_up_to;
+                    ksort( $versions );
+                }
+                
 		return compact( 'versions', 'tested_up_to' );
 	}
 }
