modules/widgets/top-posts.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 576-578 (lines=3) @@ | 
                                                            
                                    | 573 |  | 			 * To be able to remove attachment pages from private and password protect posts, | 
                                                            
                                    | 574 |  | 			 * we need to replace their post status by the parent post' status. | 
                                                            
                                    | 575 |  | 			 */ | 
                                                            
                                    | 576 |  | 			if ( 'inherit' == $post->post_status && 'attachment' == $post->post_type ) { | 
                                                            
                                    | 577 |  | 				$post->post_status = get_post_status( $post_id ); | 
                                                            
                                    | 578 |  | 			} | 
                                                            
                                    | 579 |  |  | 
                                                            
                                    | 580 |  | 			// hide private and password protected posts | 
                                                            
                                    | 581 |  | 			if ( 'publish' != $post->post_status || ! empty( $post->post_password ) ) { | 
                                                                        
                 
                                                            
                    
modules/likes/jetpack-likes-settings.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 316-320 (lines=5) @@ | 
                                                            
                                    | 313 |  |  | 
                                                            
                                    | 314 |  | 		if ( $post instanceof WP_Post ) { | 
                                                            
                                    | 315 |  | 			// Check that the post is a public, published post. | 
                                                            
                                    | 316 |  | 			if ( 'attachment' == $post->post_type ) { | 
                                                            
                                    | 317 |  | 				$post_status = get_post_status( $post->post_parent ); | 
                                                            
                                    | 318 |  | 			} else { | 
                                                            
                                    | 319 |  | 				$post_status = $post->post_status; | 
                                                            
                                    | 320 |  | 			} | 
                                                            
                                    | 321 |  | 			if ( 'publish' != $post_status ) { | 
                                                            
                                    | 322 |  | 				$enabled = false; | 
                                                            
                                    | 323 |  | 			} |