Ticket #12966: 12966.diff
| File 12966.diff, 666 bytes (added by , 16 years ago) |
|---|
-
wp-includes/post.php
752 752 753 753 $post_types = array(); 754 754 foreach ( (array) $wp_post_types as $post_type ) { 755 if ( empty( $args) ) {755 if ( empty( $args ) ) { 756 756 if ( $do_names ) 757 757 $post_types[] = $post_type->name; 758 758 else 759 759 $post_types[] = $post_type; 760 } elseif ( array_intersect_assoc((array) $post_type, $args) ) {760 } elseif ( count( array_intersect_assoc( (array) $post_type, $args ) ) == count( $args ) ) { 761 761 if ( $do_names ) 762 762 $post_types[] = $post_type->name; 763 763 else