Index: wp-includes/post-formats.php
===================================================================
--- wp-includes/post-formats.php	(revision 23992)
+++ wp-includes/post-formats.php	(working copy)
@@ -63,7 +63,7 @@
 
 	if ( !empty($format) ) {
 		$format = sanitize_key($format);
-		if ( 'standard' == $format || !in_array( $format, array_keys( get_post_format_slugs() ) ) )
+		if ( 'standard' == $format || !in_array( $format, get_post_format_slugs() ) )
 			$format = '';
 		else
 			$format = 'post-format-' . $format;
Index: wp-includes/theme.php
===================================================================
--- wp-includes/theme.php	(revision 23992)
+++ wp-includes/theme.php	(working copy)
@@ -1261,7 +1261,7 @@
 	switch ( $feature ) {
 		case 'structured-post-formats' :
 			if ( is_array( $args[0] ) )
-				$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
+				$args[0] = array_intersect( $args[0], get_post_format_slugs() );
 			// structured-post-formats support automatically adds support for post-formats.
 			$_wp_theme_features['post-formats'] = $args;
 		case 'post-formats' :
@@ -1269,7 +1269,7 @@
 			if ( current_theme_supports( 'structured-post-formats' ) )
 				$args = get_theme_support( 'structured-post-formats' );
 			elseif ( is_array( $args[0] ) )
-				$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
+				$args[0] = array_intersect( $args[0], get_post_format_slugs() );
 			break;
 
 		case 'custom-header-uploads' :
