Use array_intersect_assoc()

git-svn-id: http://svn.automattic.com/wordpress/trunk@12047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-10-17 16:20:52 +00:00
parent 169c14b225
commit 087e3d2376
1 changed files with 1 additions and 1 deletions

View File

@ -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