mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Use array_intersect_assoc()
git-svn-id: http://svn.automattic.com/wordpress/trunk@12047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
169c14b225
commit
087e3d2376
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user