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 || |
class.json-api-endpoints.php 1 location
|
@@ 958-963 (lines=6) @@
|
955 |
|
return false; |
956 |
|
} |
957 |
|
|
958 |
|
if ( 'inherit' === $post->post_status ) { |
959 |
|
$parent_post = get_post( $post->post_parent ); |
960 |
|
$post_status_obj = get_post_status_object( $parent_post->post_status ); |
961 |
|
} else { |
962 |
|
$post_status_obj = get_post_status_object( $post->post_status ); |
963 |
|
} |
964 |
|
|
965 |
|
if ( !$post_status_obj->public ) { |
966 |
|
if ( is_user_logged_in() ) { |