projects/plugins/jetpack/class.json-api-endpoints.php 1 location
|
@@ 1088-1093 (lines=6) @@
|
1085 |
|
return false; |
1086 |
|
} |
1087 |
|
|
1088 |
|
if ( 'inherit' === $post->post_status ) { |
1089 |
|
$parent_post = get_post( $post->post_parent ); |
1090 |
|
$post_status_obj = get_post_status_object( $parent_post->post_status ); |
1091 |
|
} else { |
1092 |
|
$post_status_obj = get_post_status_object( $post->post_status ); |
1093 |
|
} |
1094 |
|
|
1095 |
|
if ( ! $post_status_obj->public ) { |
1096 |
|
if ( is_user_logged_in() ) { |
projects/plugins/jetpack/sal/class.json-api-site-base.php 1 location
|
@@ 306-311 (lines=6) @@
|
303 |
|
return false; |
304 |
|
} |
305 |
|
|
306 |
|
if ( 'inherit' === $post->post_status ) { |
307 |
|
$parent_post = get_post( $post->post_parent ); |
308 |
|
$post_status_obj = get_post_status_object( $parent_post->post_status ); |
309 |
|
} else { |
310 |
|
$post_status_obj = get_post_status_object( $post->post_status ); |
311 |
|
} |
312 |
|
|
313 |
|
$authorized = ( |
314 |
|
$post_status_obj->public || |