Changeset 15935 for trunk/wp-includes/query.php
- Timestamp:
- 10/23/2010 06:16:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r15929 r15935 2034 2034 } 2035 2035 2036 if ( is_array( $post_type) ) {2036 if ( is_array( $post_type ) ) { 2037 2037 $post_type_cap = 'multiple_post_type'; 2038 2038 } else { 2039 $post_type_object = get_post_type_object ( $post_type ); 2040 if ( !empty($post_type_object) ) 2041 $post_type_cap = $post_type_object->capability_type; 2042 else 2039 $post_type_object = get_post_type_object( $post_type ); 2040 if ( empty( $post_type_object ) ) 2043 2041 $post_type_cap = $post_type; 2044 2042 } … … 2067 2065 } 2068 2066 2069 if ( !empty($post_type_object) ) { 2070 $post_type_cap = $post_type_object->capability_type; 2067 if ( ! empty( $post_type_object ) ) { 2071 2068 $edit_cap = $post_type_object->cap->edit_post; 2072 2069 $read_cap = $post_type_object->cap->read_post;
Note: See TracChangeset
for help on using the changeset viewer.