modules/likes/jetpack-likes-settings.php 1 location
|
@@ 290-294 (lines=5) @@
|
287 |
|
|
288 |
|
if ( $post instanceof WP_Post ) { |
289 |
|
// Check that the post is a public, published post. |
290 |
|
if ( 'attachment' == $post->post_type ) { |
291 |
|
$post_status = get_post_status( $post->post_parent ); |
292 |
|
} else { |
293 |
|
$post_status = $post->post_status; |
294 |
|
} |
295 |
|
if ( 'publish' != $post_status ) { |
296 |
|
$enabled = false; |
297 |
|
} |
modules/widgets/top-posts.php 1 location
|
@@ 571-573 (lines=3) @@
|
568 |
|
* To be able to remove attachment pages from private and password protect posts, |
569 |
|
* we need to replace their post status by the parent post' status. |
570 |
|
*/ |
571 |
|
if ( 'inherit' == $post->post_status && 'attachment' == $post->post_type ) { |
572 |
|
$post->post_status = get_post_status( $post_id ); |
573 |
|
} |
574 |
|
|
575 |
|
// hide private and password protected posts |
576 |
|
if ( 'publish' != $post->post_status || ! empty( $post->post_password ) ) { |