Changeset 24115
- Timestamp:
- 04/27/2013 01:28:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r24096 r24115 2238 2238 if ( ! $post_type ) 2239 2239 $post_type = 'any'; 2240 elseif ( count( $post_type ) == 1 ) 2241 $post_type = $post_type[0]; 2240 2242 2241 2243 $post_status_join = true; … … 2404 2406 } 2405 2407 2406 if ( is_array( $post_type ) ) {2408 if ( is_array( $post_type ) && count( $post_type ) > 1 ) { 2407 2409 $post_type_cap = 'multiple_post_type'; 2408 2410 } else { 2411 if ( is_array( $post_type ) ) 2412 $post_type = reset( $post_type ); 2409 2413 $post_type_object = get_post_type_object( $post_type ); 2410 2414 if ( empty( $post_type_object ) )
Note: See TracChangeset
for help on using the changeset viewer.