WordPress.org

Make WordPress Core

Changeset 12047


Ignore:
Timestamp:
10/17/09 16:20:52 (5 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.