class.json-api-endpoints.php 1 location
|
@@ 939-944 (lines=6) @@
|
936 |
|
return false; |
937 |
|
} |
938 |
|
|
939 |
|
if ( 'inherit' === $post->post_status ) { |
940 |
|
$parent_post = get_post( $post->post_parent ); |
941 |
|
$post_status_obj = get_post_status_object( $parent_post->post_status ); |
942 |
|
} else { |
943 |
|
$post_status_obj = get_post_status_object( $post->post_status ); |
944 |
|
} |
945 |
|
|
946 |
|
if ( !$post_status_obj->public ) { |
947 |
|
if ( is_user_logged_in() ) { |
sal/class.json-api-site-base.php 1 location
|
@@ 194-199 (lines=6) @@
|
191 |
|
return false; |
192 |
|
} |
193 |
|
|
194 |
|
if ( 'inherit' === $post->post_status ) { |
195 |
|
$parent_post = get_post( $post->post_parent ); |
196 |
|
$post_status_obj = get_post_status_object( $parent_post->post_status ); |
197 |
|
} else { |
198 |
|
$post_status_obj = get_post_status_object( $post->post_status ); |
199 |
|
} |
200 |
|
|
201 |
|
$authorized = ( |
202 |
|
$post_status_obj->public || |