From 2d890657eafb96fdaf2ae74a436ae4c6164cbaae Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 17 Oct 2009 16:20:52 +0000 Subject: [PATCH] Use array_intersect_assoc() git-svn-id: https://develop.svn.wordpress.org/trunk@12047 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 2dd4f56781..5f854935d7 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -451,7 +451,7 @@ function get_post_types( $args = array(), $output = 'names' ) { $post_types[] = $post_type->name; else $post_types[] = $post_type; - } elseif ( array_intersect((array) $post_type, $args) ) { + } elseif ( array_intersect_assoc((array) $post_type, $args) ) { if ( $do_names ) $post_types[] = $post_type->name; else