modules/widgets/top-posts.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 601-603 (lines=3) @@ | 
                                                            
                                    | 598 |  | 			 * To be able to remove attachment pages from private and password protect posts, | 
                                                            
                                    | 599 |  | 			 * we need to replace their post status by the parent post' status. | 
                                                            
                                    | 600 |  | 			 */ | 
                                                            
                                    | 601 |  | 			if ( 'inherit' == $post->post_status && 'attachment' == $post->post_type ) { | 
                                                            
                                    | 602 |  | 				$post->post_status = get_post_status( $post_id ); | 
                                                            
                                    | 603 |  | 			} | 
                                                            
                                    | 604 |  |  | 
                                                            
                                    | 605 |  | 			// hide private and password protected posts | 
                                                            
                                    | 606 |  | 			if ( 'publish' != $post->post_status || ! empty( $post->post_password ) ) { | 
                                                                        
                 
                                                            
                    
modules/likes/jetpack-likes-settings.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 331-335 (lines=5) @@ | 
                                                            
                                    | 328 |  |  | 
                                                            
                                    | 329 |  | 		if ( $post instanceof WP_Post ) { | 
                                                            
                                    | 330 |  | 			// Check that the post is a public, published post. | 
                                                            
                                    | 331 |  | 			if ( 'attachment' == $post->post_type ) { | 
                                                            
                                    | 332 |  | 				$post_status = get_post_status( $post->post_parent ); | 
                                                            
                                    | 333 |  | 			} else { | 
                                                            
                                    | 334 |  | 				$post_status = $post->post_status; | 
                                                            
                                    | 335 |  | 			} | 
                                                            
                                    | 336 |  | 			if ( 'publish' != $post_status ) { | 
                                                            
                                    | 337 |  | 				$enabled = false; | 
                                                            
                                    | 338 |  | 			} |