Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 14372)
+++ wp-includes/post.php	(working copy)
@@ -667,7 +667,7 @@
 }
 
 /**
- * Checks if a post type is registered, can also check if the current or specified post is of a post type.
+ * Checks if a post type is registered. Can also check if the current or specified post is of a post type.
  *
  * @since 3.0.0
  * @uses get_post_type()
@@ -677,8 +677,13 @@
  * @return bool
  */
 function is_post_type( $types = false, $id = false ) {
-	$types = ( $types === false ) ? get_post_types() : (array) $types;
-	return in_array( get_post_type( $id ), $types );
+	if ( $id ) {
+		$types = ( $types === false ) ? get_post_types() : (array) $types;
+
+		return in_array( get_post_type( $id ), $types );
+	}
+
+	return (bool) get_post_type_object($types);
 }
 
 /**
