Make WordPress Core

Changeset 12047


Ignore:
Timestamp:
10/17/2009 04:20:52 PM (15 years ago)
Author:
ryan
Message:

Use array_intersect_assoc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r12042 r12047  
    452452            else
    453453                $post_types[] = $post_type;
    454         } elseif ( array_intersect((array) $post_type, $args) ) {
     454        } elseif ( array_intersect_assoc((array) $post_type, $args) ) {
    455455            if ( $do_names )
    456456                $post_types[] = $post_type->name;
Note: See TracChangeset for help on using the changeset viewer.