Ticket #28135: 28135.diff
File 28135.diff, 1.1 KB (added by , 11 years ago) |
---|
-
wp-includes/ms-blogs.php
874 874 */ 875 875 function _update_blog_date_on_post_publish( $new_status, $old_status, $post ) { 876 876 $post_type_obj = get_post_type_object( $post->post_type ); 877 if ( ! $post_type_obj->public )877 if ( empty( $post_type_obj ) || ! $post_type_obj->public ) 878 878 return; 879 879 880 880 if ( 'publish' != $new_status && 'publish' != $old_status ) -
wp-includes/post.php
2314 2314 $cache_key = 'posts-' . $type; 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 ( ! empty( $post_type_object ) && ! current_user_can( $post_type_object->cap->read_private_posts ) ) { 2318 2318 $cache_key .= '_' . $perm . '_' . get_current_user_id(); 2319 2319 } 2320 2320 }