Ticket #28488: post.php.diff
File post.php.diff, 606 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/post.php
2185 2185 $cache_key = 'posts-' . $type; 2186 2186 if ( 'readable' == $perm && is_user_logged_in() ) { 2187 2187 $post_type_object = get_post_type_object( $type ); 2188 if ( !current_user_can( $post_type_object->cap->read_private_posts ) ) {2188 if ( null !== $post_type_object && !current_user_can( $post_type_object->cap->read_private_posts ) ) { 2189 2189 $cache_key .= '_' . $perm . '_' . get_current_user_id(); 2190 2190 } 2191 2191 }