Changeset 29318 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/29/2014 12:50:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r29113 r29318 2315 2315 if ( 'readable' == $perm && is_user_logged_in() ) { 2316 2316 $post_type_object = get_post_type_object( $type ); 2317 if ( ! current_user_can( $post_type_object->cap->read_private_posts ) ) {2317 if ( $post_type_object && ! current_user_can( $post_type_object->cap->read_private_posts ) ) { 2318 2318 $cache_key .= '_' . $perm . '_' . get_current_user_id(); 2319 2319 }
Note: See TracChangeset
for help on using the changeset viewer.